]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: more tests
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 30 Jul 2021 16:02:01 +0000 (18:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 30 Jul 2021 16:02:01 +0000 (18:02 +0200)
__tests__/store.patch.spec.ts

index 5f4f638b500730a8bc314f09599c07fb998a520a..3216954ec14ee850e68ec19409313a410f3d03a0 100644 (file)
@@ -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', () => {