chores: Lint + dependency update

This commit is contained in:
Liyas Thomas
2020-09-27 23:34:15 +05:30
parent ee066d7859
commit 7e1e61f8af
12 changed files with 63 additions and 68 deletions

View File

@@ -1,12 +1,10 @@
import axios from "axios"
import axiosStrategy, { testables, cancelRunningAxiosRequest } from "../AxiosStrategy"
jest.mock("../../utils/b64", () => {
return {
__esModule: true,
decodeB64StringToArrayBuffer: jest.fn((data) => data + "-converted"),
}
})
jest.mock("../../utils/b64", () => ({
__esModule: true,
decodeB64StringToArrayBuffer: jest.fn((data) => `${data}-converted`),
}))
describe("cancelRunningAxiosRequest", () => {
test("cancels axios request and does that only 1 time", () => {