Skip to content

Commit e2290b5

Browse files
committed
Fix more tests
1 parent bd1fb74 commit e2290b5

File tree

2 files changed

+11
-2
lines changed
  • packages/svelte/tests/runtime-runes/samples

2 files changed

+11
-2
lines changed

packages/svelte/tests/runtime-runes/samples/effect-teardown-stale-value/_config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export default test({
1414
'up',
1515
{ foo: false, bar: false },
1616
'down',
17-
{ foo: false, bar: false },
17+
// TODO the test should be deleted as there's no more concept of "teardown stale value"
18+
{ foo: true, bar: true },
1819
'up',
1920
{ foo: true, bar: true }
2021
]);

packages/svelte/tests/runtime-runes/samples/nested-effect-conflict/_config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ export default test({
1010
});
1111

1212
await Promise.resolve();
13-
assert.deepEqual(logs, ['top level', 'inner', 0, 'destroy inner', 0, 'destroy outer', 0]);
13+
assert.deepEqual(logs, [
14+
'top level',
15+
'inner',
16+
0,
17+
'destroy inner',
18+
undefined,
19+
'destroy outer',
20+
undefined
21+
]);
1422
}
1523
});

0 commit comments

Comments
 (0)