Fix/parse component props object #149
Annotations
2 errors
Run pnpm test:
test/utils/index.ts#L22
Error: Snapshot `codeblock-props > shouldConvertYamlPropsWithoutOption 1` mismatched
- Expected
+ Received
@@ -1,26 +1,37 @@
{
"children": [
{
"attributes": {},
- "children": [],
+ "children": [
+ {
+ "lang": "yaml",
+ "meta": "[props]",
+ "position": {
+ "end": {
+ "column": 4,
+ "line": 7,
+ "offset": 89,
+ },
+ "start": {
+ "column": 1,
+ "line": 2,
+ "offset": 24,
+ },
+ },
+ "type": "code",
+ "value": "array:
+ - item
+ - itemKey: value
+ key: value",
+ },
+ ],
"data": {
"hName": "with-frontmatter-yaml",
- "hProperties": {
- ":array": "["item",{"itemKey":"value"}]",
- "key": "value",
- },
- },
- "fmAttributes": {
- "array": [
- "item",
- {
- "itemKey": "value",
- },
- ],
- "key": "value",
+ "hProperties": {},
},
+ "fmAttributes": {},
"name": "with-frontmatter-yaml",
"position": {
"end": {
"column": 3,
"line": 8,
@@ -30,15 +41,10 @@
"column": 1,
"line": 1,
"offset": 0,
},
},
- "rawData": "array:
- - item
- - itemKey: value
- key: value
- ---",
"type": "containerComponent",
},
],
"position": {
"end": {
❯ test/utils/index.ts:22:19
|
Run pnpm test
Process completed with exit code 1.
|
Loading