[LiquidDoc] Modify LiquidDoc parsing to capture leading whitespace an… #2280
Annotations
9 errors
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L20
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"description": Object {
- "content": "just a description",
+ "content": "just a description
+ ",
"nodeType": "description",
},
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:20:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L104
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"examples": Array [
Object {
- "content": "
- {{ product }}
+ "content": "{{ product }}
",
"nodeType": "example",
},
],
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:104:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L127
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"examples": Array [
Object {
- "content": "
- {{ product }}
+ "content": "{{ product }}
{{ product.title }}
",
"nodeType": "example",
},
],
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:127:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L150
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"examples": Array [
Object {
- "content": "
- {{ product }} // This is an example
+ "content": "{{ product }} // This is an example
",
"nodeType": "example",
},
],
"parameters": Array [
Object {
"description": "The product",
"name": "product",
"nodeType": "param",
"required": true,
"type": "String",
},
],
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:150:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L183
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"examples": Array [
Object {
- "content": "
- {{ product }}
+ "content": "{{ product }}
",
"nodeType": "example",
},
Object {
- "content": "
- {{ product.title }}
+ "content": "{{ product.title }}
",
"nodeType": "example",
},
],
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:183:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L208
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"description": Object {
- "content": "This is a description",
+ "content": "This is a description
+ ",
"nodeType": "description",
},
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:208:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L228
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"description": Object {
- "content": "This is a description",
+ "content": "This is a description
+ ",
"nodeType": "description",
},
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:228:28
|
Run the unit tests:
packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts#L275
AssertionError: expected { name: 'product-card', …(1) } to deeply equal { name: 'product-card', …(1) }
- Expected
+ Received
Object {
"liquidDoc": Object {
"description": Object {
"content": "this is an implicit description
- in a header",
+ in a header
+
+ ",
"nodeType": "description",
},
"parameters": Array [
Object {
"description": null,
"name": "asdf",
"nodeType": "param",
"required": true,
"type": null,
},
],
},
"name": "product-card",
}
❯ packages/theme-check-common/src/liquid-doc/liquidDoc.spec.ts:275:28
|
Run the unit tests
Process completed with exit code 1.
|
Loading