Remove No-Proxy test stubs from AxiosStrategy-Proxy.spec.js

This commit is contained in:
Andrew Bastin
2020-08-22 17:15:04 -04:00
parent 2b755c0497
commit e0970fc69d

View File

@@ -152,33 +152,4 @@ describe("axiosStrategy", () => {
await expect(axiosStrategy({}, store)).rejects.toBe("errr")
})
})
describe("No-Proxy Requests", () => {
const store = {
state: {
postwoman: {
settings: {
PROXY_ENABLED: false,
PROXY_URL: "test",
},
},
},
}
test("sends request to the actual sender if proxy disabled", async () => {
// jest.mock("axios")
// await axiosStrategy({ url: "test" }, store)
// expect(axiosFunc).toBeCalledWith(expect.objectContaining({
// url: "test"
// }))
})
test("asks axios to return data as arraybuffer", () => {})
test("resolves successful requests", () => {})
test("rejects cancel errors with text 'cancellation'", () => {})
test("rejects non-cancellation errors as-is", () => {})
})
})