Skip to content

Commit 551b006

Browse files
committed
fix test
1 parent 6f937f6 commit 551b006

File tree

1 file changed

+4
-1
lines changed
  • packages/svelte/tests/runtime-runes/samples/side-effect-template

1 file changed

+4
-1
lines changed

packages/svelte/tests/runtime-runes/samples/side-effect-template/_config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default test({
99
test({ assert, target }) {
1010
const button = target.querySelector('button');
1111

12-
assert.throws(() => {}, /state_unsafe_mutation/);
12+
assert.throws(() => {
13+
button?.click();
14+
flushSync();
15+
}, /state_unsafe_mutation/);
1316
}
1417
});

0 commit comments

Comments
 (0)