@@ -16,8 +16,8 @@ test("transform fenced into vue-live with live flag", () => {
16
16
}
17
17
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
18
18
"<vue-live
19
- :layoutProps =\\"{lang:'vue'}\\"
20
- :code=\\"\`< comp/> \`\\" />
19
+ :layout-props =\\"{lang:'vue'}\\"
20
+ :code=\\"\`< comp/> \`\\" />
21
21
"
22
22
` ) ;
23
23
}
@@ -62,8 +62,8 @@ test("transform custom fenced into vue-live", () => {
62
62
}
63
63
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
64
64
"<vue-live
65
- :layoutProps =\\"{lang:'pizza'}\\"
66
- :code=\\"\`< comp/> \`\\" />
65
+ :layout-props =\\"{lang:'pizza'}\\"
66
+ :code=\\"\`< comp/> \`\\" />
67
67
"
68
68
` ) ;
69
69
}
@@ -87,11 +87,11 @@ const a = require('test/req')
87
87
}
88
88
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
89
89
"<vue-live
90
- :layoutProps =\\"{lang:'js'}\\"
90
+ :layout-props =\\"{lang:'js'}\\"
91
91
:requires=\\"{'test/import': require('test/import'),'test/req': require('test/req')}\\"
92
92
:code=\\"\`import b from 'test/import'
93
93
const a = require('test/req')
94
- < comp/> \`\\" />
94
+ < comp/> \`\\" />
95
95
"
96
96
` ) ;
97
97
}
@@ -113,9 +113,9 @@ test("transform require and import statements", () => {
113
113
}
114
114
expect ( String ( file ) ) . toMatchInlineSnapshot ( `
115
115
"<vue-live
116
- :layoutProps =\\"{lang:'js'}\\"
117
- :code=\\"\`< comp/> \`\\"
118
- :editorProps =\\"{"lineNumbers": true}\\" />
116
+ :layout-props =\\"{lang:'js'}\\"
117
+ :code=\\"\`< comp/> \`\\"
118
+ :editor-props =\\"{"lineNumbers": true}\\" />
119
119
"
120
120
` ) ;
121
121
}
0 commit comments