1
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
3
3
exports [` transform > basic 1` ] = `
4
- "<template ><div class =\\ "markdown-body\\ "><h1>Hello</h1>
4
+ "<template ><div class = " markdown-body" ><h1 >Hello</h1 >
5
5
<ul >
6
6
<li >A</li >
7
7
<li >B</li >
8
8
<li >C</li >
9
9
</ul >
10
10
</div ></template >
11
11
<script setup >
12
- const frontmatter = { \\ " title\\ " :\\ " Hey\\ " }
12
+ const frontmatter = { " title" : " Hey" }
13
13
defineExpose({ frontmatter } )
14
14
</script >
15
15
<script >
16
- export const title = \\ "Hey\\ "
16
+ export const title = "Hey"
17
17
</script >"
18
18
` ;
19
19
20
20
exports [` transform > couldn't expose frontmatter 1` ] = `
21
- "<template ><div class =\\ "markdown-body\\ ">
21
+ "<template ><div class = " markdown-body" >
22
22
</div ></template >
23
23
<script setup >
24
- const frontmatter = { \\ " title\\ " :\\ " Hey\\ " }
24
+ const frontmatter = { " title" : " Hey" }
25
25
defineExpose({ test : ' test' } )
26
26
</script >
27
27
<script >
28
- export const title = \\ "Hey\\ "
28
+ export const title = "Hey"
29
29
</script >"
30
30
` ;
31
31
32
32
exports [` transform > escapeCodeTagInterpolation 1` ] = `
33
- "<template ><div class =\\ "markdown-body\\ "><div>{{hello}}</div>
34
- <pre><code class =\\ "language-ts\\ " v-pre >< div> { {hello }} < /div>
33
+ "<template ><div class = " markdown-body" ><div >{ {hello }} </div >
34
+ <pre ><code class = " language-ts" v-pre >< div> { {hello }} < /div>
35
35
</code ></pre >
36
36
</div ></template >
37
37
<script setup >
@@ -41,56 +41,56 @@ defineExpose({ frontmatter })
41
41
` ;
42
42
43
43
exports [` transform > export keyword frontmatters 1` ] = `
44
- "<template ><div class =\\ "markdown-body\\ "><p>Hello</p>
44
+ "<template ><div class = " markdown-body" ><p >Hello</p >
45
45
</div ></template >
46
46
<script setup >
47
- const frontmatter = { \\ " class\\ " :\\ " text\\ " ,\\ " default\\ " :\\ " foo\\ " }
47
+ const frontmatter = { " class" : " text" , " default" : " foo" }
48
48
defineExpose({ frontmatter } )
49
49
</script >
50
50
<script >
51
- export const _class = \\ "text\\ "
52
- export const _default = \\ "foo\\ "
51
+ export const _class = "text"
52
+ export const _default = "foo"
53
53
</script >"
54
54
` ;
55
55
56
56
exports [` transform > exposes frontmatter 1` ] = `
57
- "<template ><div class =\\ "markdown-body\\ "><h1>Hello</h1>
57
+ "<template ><div class = " markdown-body" ><h1 >Hello</h1 >
58
58
</div ></template >
59
59
<script setup >
60
- const frontmatter = { \\ " title\\ " :\\ " Hey\\ " }
60
+ const frontmatter = { " title" : " Hey" }
61
61
defineExpose({ frontmatter } )
62
62
</script >
63
63
<script >
64
- export const title = \\ "Hey\\ "
64
+ export const title = "Hey"
65
65
</script >"
66
66
` ;
67
67
68
68
exports [` transform > frontmatter interpolation 1` ] = `
69
- "<template ><div class =\\ "markdown-body\\ "><h1>Hello World</h1>
69
+ "<template ><div class = " markdown-body" ><h1 >Hello World</h1 >
70
70
<p >This is { {frontmatter.name }} </p >
71
71
</div ></template >
72
72
<script setup >
73
- const frontmatter = { \\ " name\\ " :\\ " My Cool App\\ " }
73
+ const frontmatter = { " name" : " My Cool App" }
74
74
defineExpose({ frontmatter } )
75
75
</script >
76
76
<script >
77
- export const name = \\ "My Cool App\\ "
77
+ export const name = "My Cool App"
78
78
</script >"
79
79
` ;
80
80
81
81
exports [` transform > script setup 1` ] = `
82
- "<template ><div class =\\ "markdown-body\\ "><h1>Hello</h1>
82
+ "<template ><div class = " markdown-body" ><h1 >Hello</h1 >
83
83
84
84
</div ></template >
85
- <script setup lang =\\ "ts\\ ">
85
+ <script setup lang = " ts" >
86
86
const frontmatter = { }
87
87
defineExpose({ frontmatter } )
88
88
import Foo from './Foo.vue'
89
89
</script >"
90
90
` ;
91
91
92
92
exports [` transform > style 1` ] = `
93
- "<template ><div class =\\ "markdown-body\\ "><h1>Hello</h1>
93
+ "<template ><div class = " markdown-body" ><h1 >Hello</h1 >
94
94
95
95
</div ></template >
96
96
<script setup >
@@ -101,17 +101,17 @@ defineExpose({ frontmatter })
101
101
` ;
102
102
103
103
exports [` transform > vue directives 1` ] = `
104
- "<template ><div class =\\ "markdown-body\\ ">
105
- <p><button @click=\\ "onClick\\ "></button></p>
104
+ "<template ><div class = " markdown-body" >
105
+ <p ><button @click="onClick"></button></p>
106
106
</div></template>
107
- <script setup lang =\\ "ts\\ ">
108
- const frontmatter = { \\ " name\\ " :\\ " My Cool App\\ " }
107
+ <script setup lang = " ts" >
108
+ const frontmatter = { " name" : " My Cool App" }
109
109
defineExpose({ frontmatter } )
110
110
function onClick() {
111
111
// ...
112
112
}
113
113
</script >
114
- <script lang =\\ "ts\\ ">
115
- export const name = \\ "My Cool App\\ "
114
+ <script lang = " ts" >
115
+ export const name = "My Cool App"
116
116
</script >"
117
117
`;
0 commit comments