Преглед на файлове

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: {