From 0a758f5e9624e36f68402560d21422c8126b92a0 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 11 Mar 2024 22:39:39 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20tests=20Co-authored-by:=20Gonzalo=20Su?= =?UTF-8?q?=C3=A1rez=20Losada=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/tests/Logout.test.js | 2 +- webapp/src/tests/Questions.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 );