fix snapshot tests

pull/15538/head
Rich Harris 5 months ago
parent eaf2aaf8fc
commit 97817a95d6

@ -22,11 +22,11 @@ export default function Nullish_coallescence_omittance($$anchor) {
var fragment = root();
var h1 = $.first_child(fragment);
h1.textContent = `Hello, ${name ?? ''}!`;
h1.textContent = 'Hello, world!';
var b = $.sibling(h1, 2);
b.textContent = `${1 ?? 'stuff'}${2 ?? 'more stuff'}${3 ?? 'even more stuff'}`;
b.textContent = '123';
var button = $.sibling(b, 2);
@ -38,7 +38,7 @@ export default function Nullish_coallescence_omittance($$anchor) {
var h1_1 = $.sibling(button, 2);
h1_1.textContent = `Hello, ${name ?? 'earth' ?? ''}`;
h1_1.textContent = 'Hello, world';
$.template_effect(() => $.set_text(text, `Count is ${$.get(count) ?? ''}`));
$.append($$anchor, fragment);
}

@ -103,7 +103,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
var node = $.sibling(h1, 10);
$.html(node, () => $$props.content, false, false);
$.html(node, () => $$props.content);
$.next(14);
$.reset(main);
@ -128,7 +128,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
var select = $.sibling(div_1, 2);
var option = $.child(select);
option.value = null == (option.__value = 'a') ? '' : 'a';
option.value = option.__value = 'a';
$.reset(select);
var img = $.sibling(select, 2);

Loading…
Cancel
Save