diff --git a/tests/configs/empty_ipWhiteList.js b/tests/configs/empty_ipWhiteList.js index 5288112d08..984d173856 100644 --- a/tests/configs/empty_ipWhiteList.js +++ b/tests/configs/empty_ipWhiteList.js @@ -4,8 +4,7 @@ * MIT Licensed. */ let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({ - ipWhitelist: [], - port: 8282 + ipWhitelist: [] }); /*************** DO NOT EDIT THE LINE BELOW ***************/ diff --git a/tests/configs/noIpWhiteList.js b/tests/configs/noIpWhiteList.js index 09e74061a2..4e26b1a06c 100644 --- a/tests/configs/noIpWhiteList.js +++ b/tests/configs/noIpWhiteList.js @@ -4,8 +4,7 @@ * MIT Licensed. */ let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({ - ipWhitelist: ["x.x.x.x"], - port: 8181 + ipWhitelist: ["x.x.x.x"] }); /*************** DO NOT EDIT THE LINE BELOW ***************/ diff --git a/tests/e2e/ipWhitelist_spec.js b/tests/e2e/ipWhitelist_spec.js index 07a0425e8d..1fcc4ffc96 100644 --- a/tests/e2e/ipWhitelist_spec.js +++ b/tests/e2e/ipWhitelist_spec.js @@ -10,7 +10,7 @@ describe("ipWhitelist directive configuration", () => { }); it("should return 403", async () => { - const res = await fetch("http://localhost:8181"); + const res = await fetch("http://localhost:8080"); expect(res.status).toBe(403); }); }); @@ -24,7 +24,7 @@ describe("ipWhitelist directive configuration", () => { }); it("should return 200", async () => { - const res = await fetch("http://localhost:8282"); + const res = await fetch("http://localhost:8080"); expect(res.status).toBe(200); }); }); diff --git a/tests/unit/functions/server_functions_spec.js b/tests/unit/functions/server_functions_spec.js index d4776e53c2..77d6e8eb0d 100644 --- a/tests/unit/functions/server_functions_spec.js +++ b/tests/unit/functions/server_functions_spec.js @@ -21,6 +21,7 @@ describe("server_functions tests", () => { }, text: fetchResponseHeadersText }; + // eslint-disable-next-line fetch = jest.fn(); fetch.mockImplementation(() => fetchResponse);