]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: remove unecessary setActivePinia
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 3 Mar 2021 12:45:40 +0000 (13:45 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 3 Mar 2021 12:45:40 +0000 (13:45 +0100)
__tests__/lifespan.spec.ts

index 212da3d878c1e0ac4cfec09c15a4f36eba7e2f57..a299b346c4473e7fb1baa748f7a65983193bdcc6 100644 (file)
@@ -1,4 +1,4 @@
-import { createPinia, defineStore, setActivePinia } from '../src'
+import { createPinia, defineStore } from '../src'
 import { mount } from '@vue/test-utils'
 import { watch, nextTick, defineComponent } from 'vue'
 
@@ -29,7 +29,6 @@ describe('Store Lifespan', () => {
 
   it('state reactivity outlives component life', async () => {
     const useStore = defineMyStore()
-    setActivePinia(createPinia())
 
     const inComponentWatch = jest.fn()