Skip to content

Commit f086c59

Browse files
Bart LedouxBart Ledoux
authored andcommitted
test: fix snapshots
1 parent c225337 commit f086c59

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.spec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ test("transform fenced into vue-live with live flag", () => {
1616
}
1717
expect(String(file)).toMatchInlineSnapshot(`
1818
"<vue-live
19-
:layoutProps=\\"{lang:'vue'}\\"
20-
:code=\\"\`<comp/>\`\\" />
19+
:layout-props=\\"{lang:'vue'}\\"
20+
:code=\\"\`&lt;comp/&gt;\`\\" />
2121
"
2222
`);
2323
}
@@ -62,8 +62,8 @@ test("transform custom fenced into vue-live", () => {
6262
}
6363
expect(String(file)).toMatchInlineSnapshot(`
6464
"<vue-live
65-
:layoutProps=\\"{lang:'pizza'}\\"
66-
:code=\\"\`<comp/>\`\\" />
65+
:layout-props=\\"{lang:'pizza'}\\"
66+
:code=\\"\`&lt;comp/&gt;\`\\" />
6767
"
6868
`);
6969
}
@@ -87,11 +87,11 @@ const a = require('test/req')
8787
}
8888
expect(String(file)).toMatchInlineSnapshot(`
8989
"<vue-live
90-
:layoutProps=\\"{lang:'js'}\\"
90+
:layout-props=\\"{lang:'js'}\\"
9191
:requires=\\"{'test/import': require('test/import'),'test/req': require('test/req')}\\"
9292
:code=\\"\`import b from 'test/import'
9393
const a = require('test/req')
94-
<comp/>\`\\" />
94+
&lt;comp/&gt;\`\\" />
9595
"
9696
`);
9797
}
@@ -113,9 +113,9 @@ test("transform require and import statements", () => {
113113
}
114114
expect(String(file)).toMatchInlineSnapshot(`
115115
"<vue-live
116-
:layoutProps=\\"{lang:'js'}\\"
117-
:code=\\"\`<comp/>\`\\"
118-
:editorProps=\\"{&quot;lineNumbers&quot;: true}\\" />
116+
:layout-props=\\"{lang:'js'}\\"
117+
:code=\\"\`&lt;comp/&gt;\`\\"
118+
:editor-props=\\"{&quot;lineNumbers&quot;: true}\\" />
119119
"
120120
`);
121121
}

0 commit comments

Comments
 (0)