Skip to content

Commit 295be29

Browse files
committed
migrate snapshots from Vitest to Node.js Test Runner
1 parent 0c3d28f commit 295be29

22 files changed

+2143
-2211
lines changed
Lines changed: 24 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,71 @@
1-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2-
31
exports[`Code Block > Bulleted code block 1`] = `
42
[
53
{
6-
"content": "function () {
7-
alert(document.location.href)
8-
console.log("hello")
9-
// You can also write comments!
10-
}",
11-
"fileName": "hello.js",
124
"indent": 1,
135
"type": "codeBlock",
14-
},
6+
"fileName": "hello.js",
7+
"content": "function () {\\n alert(document.location.href)\\n console.log(\\"hello\\")\\n // You can also write comments!\\n}"
8+
}
159
]
1610
`;
1711

1812
exports[`Code Block > Code block with bullet 1`] = `
1913
[
2014
{
2115
"indent": 1,
16+
"type": "line",
2217
"nodes": [
2318
{
24-
"raw": "Bullet",
25-
"text": "Bullet",
2619
"type": "plain",
27-
},
28-
],
29-
"type": "line",
20+
"raw": "Bullet",
21+
"text": "Bullet"
22+
}
23+
]
3024
},
3125
{
32-
"content": "function () {
33-
alert(document.location.href)
34-
console.log("hello")
35-
// You can also write comments!
36-
}",
37-
"fileName": "hello.js",
3826
"indent": 1,
3927
"type": "codeBlock",
28+
"fileName": "hello.js",
29+
"content": "function () {\\n alert(document.location.href)\\n console.log(\\"hello\\")\\n // You can also write comments!\\n}"
4030
},
4131
{
4232
"indent": 1,
33+
"type": "line",
4334
"nodes": [
4435
{
45-
"raw": "Bullet",
46-
"text": "Bullet",
4736
"type": "plain",
48-
},
49-
],
50-
"type": "line",
51-
},
37+
"raw": "Bullet",
38+
"text": "Bullet"
39+
}
40+
]
41+
}
5242
]
5343
`;
5444

5545
exports[`Code Block > Consecutive code blocks 1`] = `
5646
[
5747
{
58-
"content": "function () {
59-
alert(document.location.href)
60-
console.log("hello")
61-
// You can also write comments!
62-
}",
63-
"fileName": "hello.js",
6448
"indent": 0,
6549
"type": "codeBlock",
50+
"fileName": "hello.js",
51+
"content": "function () {\\n alert(document.location.href)\\n console.log(\\"hello\\")\\n // You can also write comments!\\n}"
6652
},
6753
{
68-
"content": "function () {
69-
alert(document.location.href)
70-
console.log("hello")
71-
// You can also write comments!
72-
}",
73-
"fileName": "hello.js",
7454
"indent": 0,
7555
"type": "codeBlock",
76-
},
56+
"fileName": "hello.js",
57+
"content": "function () {\\n alert(document.location.href)\\n console.log(\\"hello\\")\\n // You can also write comments!\\n}"
58+
}
7759
]
7860
`;
7961

8062
exports[`Code Block > Simple code block 1`] = `
8163
[
8264
{
83-
"content": "function () {
84-
alert(document.location.href)
85-
console.log("hello")
86-
// You can also write comments!
87-
}",
88-
"fileName": "hello.js",
8965
"indent": 0,
9066
"type": "codeBlock",
91-
},
67+
"fileName": "hello.js",
68+
"content": "function () {\\n alert(document.location.href)\\n console.log(\\"hello\\")\\n // You can also write comments!\\n}"
69+
}
9270
]
9371
`;
Lines changed: 59 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,131 @@
1-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2-
3-
exports[`blank > [] is not blank 1`] = `
4-
[
5-
{
6-
"indent": 0,
7-
"nodes": [
8-
{
9-
"raw": "[]",
10-
"text": "[]",
11-
"type": "plain",
12-
},
13-
],
14-
"type": "line",
15-
},
16-
]
17-
`;
18-
191
exports[`blank > Blank in the [*** ] 1`] = `
202
[
213
{
224
"indent": 0,
5+
"type": "line",
236
"nodes": [
247
{
25-
"raw": "[*** ",
26-
"text": "[*** ",
278
"type": "plain",
9+
"raw": "[*** ",
10+
"text": "[*** "
2811
},
2912
{
30-
"raw": "[ ]",
31-
"text": " ",
3213
"type": "blank",
14+
"raw": "[ ]",
15+
"text": " "
3316
},
3417
{
35-
"raw": "]",
36-
"text": "]",
3718
"type": "plain",
38-
},
39-
],
40-
"type": "line",
41-
},
19+
"raw": "]",
20+
"text": "]"
21+
}
22+
]
23+
}
4224
]
4325
`;
4426

4527
exports[`blank > Blank in the sentence 1`] = `
4628
[
4729
{
4830
"indent": 0,
31+
"type": "line",
4932
"nodes": [
5033
{
51-
"raw": "sentence",
52-
"text": "sentence",
5334
"type": "plain",
35+
"raw": "sentence",
36+
"text": "sentence"
5437
},
5538
{
56-
"raw": "[ ]",
57-
"text": " ",
5839
"type": "blank",
40+
"raw": "[ ]",
41+
"text": " "
5942
},
6043
{
61-
"raw": "sentence",
62-
"text": "sentence",
6344
"type": "plain",
64-
},
65-
],
66-
"type": "line",
67-
},
45+
"raw": "sentence",
46+
"text": "sentence"
47+
}
48+
]
49+
}
6850
]
6951
`;
7052

7153
exports[`blank > Multi char blank 1`] = `
7254
[
7355
{
7456
"indent": 0,
57+
"type": "line",
7558
"nodes": [
7659
{
77-
"raw": "[     ]",
78-
"text": "     ",
7960
"type": "blank",
80-
},
81-
],
82-
"type": "line",
83-
},
61+
"raw": "[   \\t \\t ]",
62+
"text": "   \\t \\t "
63+
}
64+
]
65+
}
8466
]
8567
`;
8668

8769
exports[`blank > Simple double-byte space blank 1`] = `
8870
[
8971
{
9072
"indent": 0,
73+
"type": "line",
9174
"nodes": [
9275
{
93-
"raw": "[ ]",
94-
"text": " ",
9576
"type": "blank",
96-
},
97-
],
98-
"type": "line",
99-
},
77+
"raw": "[ ]",
78+
"text": " "
79+
}
80+
]
81+
}
10082
]
10183
`;
10284

10385
exports[`blank > Simple half-space blank 1`] = `
10486
[
10587
{
10688
"indent": 0,
89+
"type": "line",
10790
"nodes": [
10891
{
109-
"raw": "[ ]",
110-
"text": " ",
11192
"type": "blank",
112-
},
113-
],
114-
"type": "line",
115-
},
93+
"raw": "[ ]",
94+
"text": " "
95+
}
96+
]
97+
}
11698
]
11799
`;
118100

119101
exports[`blank > Simple tab blank 1`] = `
120102
[
121103
{
122104
"indent": 0,
105+
"type": "line",
123106
"nodes": [
124107
{
125-
"raw": "[ ]",
126-
"text": " ",
127108
"type": "blank",
128-
},
129-
],
109+
"raw": "[\\t]",
110+
"text": "\\t"
111+
}
112+
]
113+
}
114+
]
115+
`;
116+
117+
exports[`blank > [] is not blank 1`] = `
118+
[
119+
{
120+
"indent": 0,
130121
"type": "line",
131-
},
122+
"nodes": [
123+
{
124+
"type": "plain",
125+
"raw": "[]",
126+
"text": "[]"
127+
}
128+
]
129+
}
132130
]
133131
`;

0 commit comments

Comments
 (0)