Skip to content

Fix/parse component props object #149

Fix/parse component props object

Fix/parse component props object #149

Triggered via pull request November 18, 2024 09:18
Status Failure
Total duration 29s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors
test/codeblock-props.test.ts > codeblock-props > shouldConvertYamlPropsWithoutOption: 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
ci
Process completed with exit code 1.