diff --git a/webapp/src/tests/Logout.test.js b/webapp/src/tests/Logout.test.js index 56e8dfa4..cd80f743 100644 --- a/webapp/src/tests/Logout.test.js +++ b/webapp/src/tests/Logout.test.js @@ -11,7 +11,7 @@ describe("Logout User tests", () => { }); it("successfully logs out the user", async () => { - mockAxios.onGet(process.env.REACT_APP_API_ENDPOINT + "/auth/logout").replyOnce(200); + mockAxios.onGet("http://98.66.168.12:8080/auth/logout" + "/auth/logout").replyOnce(200); sessionStorage.setItem("jwtToken", "token"); sessionStorage.setItem("jwtRefreshToken", "refreshToken"); diff --git a/webapp/src/tests/Questions.test.js b/webapp/src/tests/Questions.test.js index 7fe6e37a..1685d632 100644 --- a/webapp/src/tests/Questions.test.js +++ b/webapp/src/tests/Questions.test.js @@ -17,7 +17,7 @@ describe("Question Service tests", () => { text: "What is the meaning of life?", }; - mockAxios.onGet(process.env.REACT_APP_API_ENDPOINT + "/questions/new").replyOnce( + mockAxios.onGet("http://98.66.168.12:8080/auth/logout" + "/questions/new").replyOnce( HttpStatusCode.Ok, mockQuestion );