From 329307ee4984b398f860080497d88211ee49ad13 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 30 Jul 2021 18:02:01 +0200 Subject: [PATCH] test: more tests --- __tests__/store.patch.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/store.patch.spec.ts b/__tests__/store.patch.spec.ts index 5f4f638b..3216954e 100644 --- a/__tests__/store.patch.spec.ts +++ b/__tests__/store.patch.spec.ts @@ -29,12 +29,15 @@ describe('store.$patch', () => { }, list: [], }) + + expect(store.a).toBe(false) }) it('replaces whole arrays', () => { const store = useStore() store.$patch({ list: [1, 2] }) expect(store.$state.list).toEqual([1, 2]) + expect(store.list).toEqual([1, 2]) }) it('replaces whole nested arrays', () => { -- 2.47.2