From dbe29df43083351ceab28002734417194d3768b7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 1 Apr 2021 16:31:14 +0200 Subject: [PATCH] test(patch): check argument --- __tests__/store.patch.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/store.patch.spec.ts b/__tests__/store.patch.spec.ts index 274f34f7..6b6c1f8e 100644 --- a/__tests__/store.patch.spec.ts +++ b/__tests__/store.patch.spec.ts @@ -33,6 +33,7 @@ describe('store.$patch', () => { it('patches using a function', () => { const store = useStore() store.$patch((state) => { + expect(state).toBe(store.$state) state.a = !state.a state.list.push(1) }) -- 2.47.3