From e0970fc69df90cac8c1a37d461d22995f32853bc Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Sat, 22 Aug 2020 17:15:04 -0400 Subject: [PATCH] Remove No-Proxy test stubs from AxiosStrategy-Proxy.spec.js --- .../__tests__/AxiosStrategy-Proxy.spec.js | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/helpers/strategies/__tests__/AxiosStrategy-Proxy.spec.js b/helpers/strategies/__tests__/AxiosStrategy-Proxy.spec.js index b033c3cce..efce48551 100644 --- a/helpers/strategies/__tests__/AxiosStrategy-Proxy.spec.js +++ b/helpers/strategies/__tests__/AxiosStrategy-Proxy.spec.js @@ -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", () => {}) - }) })