pull/16630/head
Rich Harris 3 weeks ago
parent e648e423d4
commit d61b3e8772

@ -5,7 +5,7 @@
// this runs after the effect in B, because child effects run first // this runs after the effect in B, because child effects run first
$effect(() => { $effect(() => {
console.log(boolean, closed); console.log({ boolean, closed });
}); });
</script> </script>

@ -8,6 +8,6 @@ export default test({
flushSync(() => open.click()); flushSync(() => open.click());
flushSync(() => close.click()); flushSync(() => close.click());
assert.deepEqual(logs, [true]); assert.deepEqual(logs, [{ boolean: true, closed: false }]);
} }
}); });

Loading…
Cancel
Save