bring over test changes

simpler-process-effects
Rich Harris 2 months ago
parent e454e0713f
commit c297b59d95

@ -192,6 +192,7 @@ test('map handling of undefined values', () => {
render_effect(() => {
log.push(map.get(1));
});
});
flushSync(() => {
map.delete(1);
@ -200,7 +201,6 @@ test('map handling of undefined values', () => {
flushSync(() => {
map.set(1, 1);
});
});
assert.deepEqual(log, [undefined, undefined, 1]);
@ -220,6 +220,7 @@ test('not invoking reactivity when value is not in the map after changes', () =>
render_effect(() => {
log.push(map.get(2));
});
});
flushSync(() => {
map.delete(1);
@ -228,7 +229,6 @@ test('not invoking reactivity when value is not in the map after changes', () =>
flushSync(() => {
map.set(1, 1);
});
});
assert.deepEqual(log, [1, undefined, undefined, undefined, 1, undefined]);

Loading…
Cancel
Save