Skip to content

Commit 97817a9

Browse files
committed
fix snapshot tests
1 parent eaf2aaf commit 97817a9

File tree

2 files changed

+5
-5
lines changed
  • packages/svelte/tests/snapshot/samples

2 files changed

+5
-5
lines changed

packages/svelte/tests/snapshot/samples/nullish-coallescence-omittance/_expected/client-functional/index.svelte.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export default function Nullish_coallescence_omittance($$anchor) {
2222
var fragment = root();
2323
var h1 = $.first_child(fragment);
2424

25-
h1.textContent = `Hello, ${name ?? ''}!`;
25+
h1.textContent = 'Hello, world!';
2626

2727
var b = $.sibling(h1, 2);
2828

29-
b.textContent = `${1 ?? 'stuff'}${2 ?? 'more stuff'}${3 ?? 'even more stuff'}`;
29+
b.textContent = '123';
3030

3131
var button = $.sibling(b, 2);
3232

@@ -38,7 +38,7 @@ export default function Nullish_coallescence_omittance($$anchor) {
3838

3939
var h1_1 = $.sibling(button, 2);
4040

41-
h1_1.textContent = `Hello, ${name ?? 'earth' ?? ''}`;
41+
h1_1.textContent = 'Hello, world';
4242
$.template_effect(() => $.set_text(text, `Count is ${$.get(count) ?? ''}`));
4343
$.append($$anchor, fragment);
4444
}

packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/client-functional/index.svelte.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
103103

104104
var node = $.sibling(h1, 10);
105105

106-
$.html(node, () => $$props.content, false, false);
106+
$.html(node, () => $$props.content);
107107
$.next(14);
108108
$.reset(main);
109109

@@ -128,7 +128,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
128128
var select = $.sibling(div_1, 2);
129129
var option = $.child(select);
130130

131-
option.value = null == (option.__value = 'a') ? '' : 'a';
131+
option.value = option.__value = 'a';
132132
$.reset(select);
133133

134134
var img = $.sibling(select, 2);

0 commit comments

Comments
 (0)