Skip to content

Commit

Permalink
fix: Fix lint erros on action spec
Browse files Browse the repository at this point in the history
  • Loading branch information
marihemori committed Mar 14, 2024
1 parent 8403a01 commit eea593b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/unit/store/modules/actions.spec.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eea593b

Please sign in to comment.