Skip to content

Commit b093ac7

Browse files
committed
fix failing tests
1 parent 89dd5d8 commit b093ac7

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

packages/svelte/tests/snapshot/samples/bidirectional-control-chars/_expected/client/index.svelte.warnings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,25 @@
3838
67
3939
],
4040
"frame": "1: <script>\n2: let name = '\\u2067\\u2066rld\\u2069\\u2066wo\\u2069\\u2069';\n ^\n3: </script>\n4: ⁧⁦def⁩⁦abc⁩⁩"
41+
},
42+
{
43+
"code": "bidirectional_control_characters_detected",
44+
"message": "A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters_detected",
45+
"filename": "packages/svelte/tests/snapshot/samples/bidirectional-control-chars/index.svelte",
46+
"start": {
47+
"line": 5,
48+
"column": 11,
49+
"character": 103
50+
},
51+
"end": {
52+
"line": 5,
53+
"column": 17,
54+
"character": 109
55+
},
56+
"position": [
57+
103,
58+
109
59+
],
60+
"frame": "3: </script>\n4: ⁧⁦def⁩⁦abc⁩⁩\n5: <h1>Hello, {name}!</h1>\n ^"
4161
}
4262
]

packages/svelte/tests/snapshot/samples/bidirectional-control-chars/_expected/server/index.svelte.warnings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,25 @@
3838
67
3939
],
4040
"frame": "1: <script>\n2: let name = '\\u2067\\u2066rld\\u2069\\u2066wo\\u2069\\u2069';\n ^\n3: </script>\n4: ⁧⁦def⁩⁦abc⁩⁩"
41+
},
42+
{
43+
"code": "bidirectional_control_characters_detected",
44+
"message": "A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters_detected",
45+
"filename": "packages/svelte/tests/snapshot/samples/bidirectional-control-chars/index.svelte",
46+
"start": {
47+
"line": 5,
48+
"column": 11,
49+
"character": 103
50+
},
51+
"end": {
52+
"line": 5,
53+
"column": 17,
54+
"character": 109
55+
},
56+
"position": [
57+
103,
58+
109
59+
],
60+
"frame": "3: </script>\n4: ⁧⁦def⁩⁦abc⁩⁩\n5: <h1>Hello, {name}!</h1>\n ^"
4161
}
4262
]

packages/svelte/tests/snapshot/samples/purity/_expected/client/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function Purity($$anchor) {
88
var fragment = root();
99
var p = $.first_child(fragment);
1010

11-
p.textContent = 0;
11+
p.textContent = '0';
1212

1313
var p_1 = $.sibling(p, 2);
1414

0 commit comments

Comments
 (0)