From c297b59d95af640958ef92ea6b9474ec89a092f3 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 17 Sep 2024 16:56:39 -0400 Subject: [PATCH] bring over test changes --- packages/svelte/src/reactivity/map.test.ts | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/svelte/src/reactivity/map.test.ts b/packages/svelte/src/reactivity/map.test.ts index 2f9f064b42..efcf0d5a31 100644 --- a/packages/svelte/src/reactivity/map.test.ts +++ b/packages/svelte/src/reactivity/map.test.ts @@ -192,14 +192,14 @@ test('map handling of undefined values', () => { render_effect(() => { log.push(map.get(1)); }); + }); - flushSync(() => { - map.delete(1); - }); + flushSync(() => { + map.delete(1); + }); - flushSync(() => { - map.set(1, 1); - }); + flushSync(() => { + map.set(1, 1); }); assert.deepEqual(log, [undefined, undefined, 1]); @@ -220,14 +220,14 @@ test('not invoking reactivity when value is not in the map after changes', () => render_effect(() => { log.push(map.get(2)); }); + }); - flushSync(() => { - map.delete(1); - }); + flushSync(() => { + map.delete(1); + }); - flushSync(() => { - map.set(1, 1); - }); + flushSync(() => { + map.set(1, 1); }); assert.deepEqual(log, [1, undefined, undefined, undefined, 1, undefined]);