Update test snapshots

pull/16140/head
Matei-Paul Trandafir 3 months ago
parent 3ee6b6204a
commit d04e4bb14a
No known key found for this signature in database
GPG Key ID: BC96CA77836E14F8

@ -18,14 +18,14 @@ export default function Bind_component_snippet($$anchor) {
var fragment = root();
var node = $.first_child(fragment);
TextInput(node, {
TextInput(node, $.props({
get value() {
return $.get(value);
},
set value($$value) {
$.set(value, $$value, true);
}
});
}));
var text_1 = $.sibling(node);

@ -3,5 +3,5 @@ import 'svelte/internal/flags/legacy';
import * as $ from 'svelte/internal/client';
export default function Bind_this($$anchor) {
$.bind_this(Foo($$anchor, { $$legacy: true }), ($$value) => foo = $$value, () => foo);
$.bind_this(Foo($$anchor, $.props({ $$legacy: true })), ($$value) => foo = $$value, () => foo);
}

@ -10,7 +10,7 @@ export default function Function_prop_no_getter($$anchor) {
const plusOne = (num) => num + 1;
Button($$anchor, {
Button($$anchor, $.props({
onmousedown: () => $.set(count, $.get(count) + 1),
onmouseup,
onmouseenter: () => $.set(count, plusOne($.get(count)), true),
@ -23,5 +23,5 @@ export default function Function_prop_no_getter($$anchor) {
$.append($$anchor, text);
},
$$slots: { default: true }
});
}));
}

@ -16,6 +16,6 @@ export default function Purity($$anchor) {
var node = $.sibling(p_1, 2);
Child(node, { prop: encodeURIComponent('hello') });
Child(node, $.props({ prop: encodeURIComponent('hello') }));
$.append($$anchor, fragment);
}
Loading…
Cancel
Save