diff --git a/tests/unit/store/modules/actions.spec.js b/tests/unit/store/modules/actions.spec.js index 472856c..69beb93 100644 --- a/tests/unit/store/modules/actions.spec.js +++ b/tests/unit/store/modules/actions.spec.js @@ -1,13 +1,9 @@ -import actions from '@/store/modules/actions'; - -let url = '' -let body = {} let mockError = false jest.mock("axios", () => ({ - get: (_url, _body) => { + get: (_url, _body) => { return new Promise((resolve) => { - if (mockError) + if (mockError) throw Error() url = _url