From e45aa0f85f0833ce2daab593425b717baf84149b Mon Sep 17 00:00:00 2001 From: Sander Hahn Date: Wed, 15 May 2019 09:26:54 +0200 Subject: [PATCH] simplify test --- test/store.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/store.ts b/test/store.ts index 9b3d5d1788b7..f931a841d741 100644 --- a/test/store.ts +++ b/test/store.ts @@ -248,17 +248,11 @@ describe('store', () => { const b = writable(1); const c = derived([a, b], ([a, b]) => `${a} ${b}`); - const values: string[] = []; - - const unsubscribe = c.subscribe(value => { - values.push(value); - }); + assert.deepEqual(get(c), 'one 1'); a.set('two'); b.set(2); - assert.deepEqual(values, 'two 2'); - - unsubscribe(); + assert.deepEqual(get(c), 'two 2'); }); });