]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test(patch): check argument
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 1 Apr 2021 14:31:14 +0000 (16:31 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 1 Apr 2021 14:31:14 +0000 (16:31 +0200)
__tests__/store.patch.spec.ts

index 274f34f774f851b51201a135e78d70a59674d517..6b6c1f8e4d045553db740f4570c31e89ac97bae9 100644 (file)
@@ -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)
     })