Skip to content

Commit beaae35

Browse files
committed
update test
1 parent 1626c22 commit beaae35

File tree

1 file changed

+8
-1
lines changed
  • packages/svelte/tests/runtime-runes/samples/async-reactivity-loss

1 file changed

+8
-1
lines changed

packages/svelte/tests/runtime-runes/samples/async-reactivity-loss/_config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export default test({
1212
await tick();
1313
assert.htmlEqual(target.innerHTML, '<button>a</button><button>b</button><h1>3</h1>');
1414

15-
assert.deepEqual(warnings, ['Detected reactivity loss']);
15+
assert.equal(
16+
warnings[0],
17+
'Detected reactivity loss when reading `b`. This happens when state is read in an async function after an earlier `await`'
18+
);
19+
20+
assert.equal(warnings[1].name, 'TracedAtError');
21+
22+
assert.equal(warnings.length, 2);
1623
}
1724
});

0 commit comments

Comments
 (0)