From: Eduardo San Martin Morote Date: Fri, 30 Jul 2021 16:02:01 +0000 (+0200) Subject: test: more tests X-Git-Tag: v2.0.0-rc.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=329307ee4984b398f860080497d88211ee49ad13;p=thirdparty%2Fvuejs%2Fpinia.git test: more tests --- 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', () => {