Skip to content

Commit e45aa0f

Browse files
committed
simplify test
1 parent 52eda23 commit e45aa0f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/store.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,11 @@ describe('store', () => {
248248
const b = writable(1);
249249
const c = derived([a, b], ([a, b]) => `${a} ${b}`);
250250

251-
const values: string[] = [];
252-
253-
const unsubscribe = c.subscribe(value => {
254-
values.push(value);
255-
});
251+
assert.deepEqual(get(c), 'one 1');
256252

257253
a.set('two');
258254
b.set(2);
259-
assert.deepEqual(values, 'two 2');
260-
261-
unsubscribe();
255+
assert.deepEqual(get(c), 'two 2');
262256
});
263257
});
264258

0 commit comments

Comments
 (0)