瀏覽代碼

chore: fix failing tests due to migration to the jest

Kia Ishii 5 年之前
父節點
當前提交
b2df4db582
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      test/unit/modules.spec.js

+ 3 - 3
test/unit/modules.spec.js

@@ -734,9 +734,9 @@ describe('Modules', () => {
   })
 
   it('action error subscribers', (done) => {
-    const beforeSpy = jasmine.createSpy()
-    const afterSpy = jasmine.createSpy()
-    const errorSpy = jasmine.createSpy()
+    const beforeSpy = jest.fn()
+    const afterSpy = jest.fn()
+    const errorSpy = jest.fn()
     const error = new Error()
     const store = new Vuex.Store({
       actions: {