Skip to content

Commit ce4f8ad

Browse files
committed
chore: update snapshot
1 parent 426fbe0 commit ce4f8ad

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`excerpt > raw excerpt 1`] = `
4-
"<template><div class=\\"markdown-body\\"><p>This is an excerpt which is kept as <strong>raw Markdown</strong>.</p>
4+
"<template><div class="markdown-body"><p>This is an excerpt which is kept as <strong>raw Markdown</strong>.</p>
55
<!-- more -->
66
<h1>Hello</h1>
77
<ul>
@@ -11,18 +11,18 @@ exports[`excerpt > raw excerpt 1`] = `
1111
</ul>
1212
</div></template>
1313
<script setup>
14-
const frontmatter = {\\"title\\":\\"Hey\\"}
14+
const frontmatter = {"title":"Hey"}
1515
defineExpose({ frontmatter })
16-
const excerpt = \\"\\\\nThis is an excerpt which is kept as **raw Markdown**.\\\\n\\\\n\\"
16+
const excerpt = "\\nThis is an excerpt which is kept as **raw Markdown**.\\n\\n"
1717
</script>
1818
<script>
19-
export const title = \\"Hey\\"
20-
export const excerpt = \\"\\\\nThis is an excerpt which is kept as **raw Markdown**.\\\\n\\\\n\\"
19+
export const title = "Hey"
20+
export const excerpt = "\\nThis is an excerpt which is kept as **raw Markdown**.\\n\\n"
2121
</script>"
2222
`;
2323

2424
exports[`excerpt > rendered excerpt 1`] = `
25-
"<template><div class=\\"markdown-body\\"><p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>
25+
"<template><div class="markdown-body"><p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>
2626
<!-- more -->
2727
<h1>Hello</h1>
2828
<ul>
@@ -32,12 +32,12 @@ exports[`excerpt > rendered excerpt 1`] = `
3232
</ul>
3333
</div></template>
3434
<script setup>
35-
const frontmatter = {\\"title\\":\\"Hey\\"}
35+
const frontmatter = {"title":"Hey"}
3636
defineExpose({ frontmatter })
37-
const excerpt = \\"<p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>\\\\n\\"
37+
const excerpt = "<p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>\\n"
3838
</script>
3939
<script>
40-
export const title = \\"Hey\\"
41-
export const excerpt = \\"<p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>\\\\n\\"
40+
export const title = "Hey"
41+
export const excerpt = "<p>This is an excerpt which has been rendered to <strong>HTML</strong>.</p>\\n"
4242
</script>"
4343
`;
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`transform > basic 1`] = `
4-
"<template><div class=\\"markdown-body\\"><h1>Hello</h1>
4+
"<template><div class="markdown-body"><h1>Hello</h1>
55
<ul>
66
<li>A</li>
77
<li>B</li>
88
<li>C</li>
99
</ul>
1010
</div></template>
1111
<script setup>
12-
const frontmatter = {\\"title\\":\\"Hey\\"}
12+
const frontmatter = {"title":"Hey"}
1313
defineExpose({ frontmatter })
1414
</script>
1515
<script>
16-
export const title = \\"Hey\\"
16+
export const title = "Hey"
1717
</script>"
1818
`;
1919

2020
exports[`transform > couldn't expose frontmatter 1`] = `
21-
"<template><div class=\\"markdown-body\\">
21+
"<template><div class="markdown-body">
2222
</div></template>
2323
<script setup>
24-
const frontmatter = {\\"title\\":\\"Hey\\"}
24+
const frontmatter = {"title":"Hey"}
2525
defineExpose({ test: 'test'})
2626
</script>
2727
<script>
28-
export const title = \\"Hey\\"
28+
export const title = "Hey"
2929
</script>"
3030
`;
3131

3232
exports[`transform > escapeCodeTagInterpolation 1`] = `
33-
"<template><div class=\\"markdown-body\\"><div>{{hello}}</div>
34-
<pre><code class=\\"language-ts\\" v-pre>&lt;div&gt;{{hello}}&lt;/div&gt;
33+
"<template><div class="markdown-body"><div>{{hello}}</div>
34+
<pre><code class="language-ts" v-pre>&lt;div&gt;{{hello}}&lt;/div&gt;
3535
</code></pre>
3636
</div></template>
3737
<script setup>
@@ -41,56 +41,56 @@ defineExpose({ frontmatter })
4141
`;
4242

4343
exports[`transform > export keyword frontmatters 1`] = `
44-
"<template><div class=\\"markdown-body\\"><p>Hello</p>
44+
"<template><div class="markdown-body"><p>Hello</p>
4545
</div></template>
4646
<script setup>
47-
const frontmatter = {\\"class\\":\\"text\\",\\"default\\":\\"foo\\"}
47+
const frontmatter = {"class":"text","default":"foo"}
4848
defineExpose({ frontmatter })
4949
</script>
5050
<script>
51-
export const _class = \\"text\\"
52-
export const _default = \\"foo\\"
51+
export const _class = "text"
52+
export const _default = "foo"
5353
</script>"
5454
`;
5555

5656
exports[`transform > exposes frontmatter 1`] = `
57-
"<template><div class=\\"markdown-body\\"><h1>Hello</h1>
57+
"<template><div class="markdown-body"><h1>Hello</h1>
5858
</div></template>
5959
<script setup>
60-
const frontmatter = {\\"title\\":\\"Hey\\"}
60+
const frontmatter = {"title":"Hey"}
6161
defineExpose({ frontmatter })
6262
</script>
6363
<script>
64-
export const title = \\"Hey\\"
64+
export const title = "Hey"
6565
</script>"
6666
`;
6767

6868
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>
7070
<p>This is {{frontmatter.name}}</p>
7171
</div></template>
7272
<script setup>
73-
const frontmatter = {\\"name\\":\\"My Cool App\\"}
73+
const frontmatter = {"name":"My Cool App"}
7474
defineExpose({ frontmatter })
7575
</script>
7676
<script>
77-
export const name = \\"My Cool App\\"
77+
export const name = "My Cool App"
7878
</script>"
7979
`;
8080

8181
exports[`transform > script setup 1`] = `
82-
"<template><div class=\\"markdown-body\\"><h1>Hello</h1>
82+
"<template><div class="markdown-body"><h1>Hello</h1>
8383
8484
</div></template>
85-
<script setup lang=\\"ts\\">
85+
<script setup lang="ts">
8686
const frontmatter = {}
8787
defineExpose({ frontmatter })
8888
import Foo from './Foo.vue'
8989
</script>"
9090
`;
9191

9292
exports[`transform > style 1`] = `
93-
"<template><div class=\\"markdown-body\\"><h1>Hello</h1>
93+
"<template><div class="markdown-body"><h1>Hello</h1>
9494
9595
</div></template>
9696
<script setup>
@@ -101,17 +101,17 @@ defineExpose({ frontmatter })
101101
`;
102102

103103
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>
106106
</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"}
109109
defineExpose({ frontmatter })
110110
function onClick() {
111111
// ...
112112
}
113113
</script>
114-
<script lang=\\"ts\\">
115-
export const name = \\"My Cool App\\"
114+
<script lang="ts">
115+
export const name = "My Cool App"
116116
</script>"
117117
`;

0 commit comments

Comments
 (0)