From db5bb8832477f15a623ed61feb1c6ddfb649c079 Mon Sep 17 00:00:00 2001 From: uo289039 Date: Thu, 14 Mar 2024 17:30:04 +0100 Subject: [PATCH] Intento arreglo de tests 11 --- webapp/src/components/Login.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/Login.test.js b/webapp/src/components/Login.test.js index 6e71f30c..03def206 100644 --- a/webapp/src/components/Login.test.js +++ b/webapp/src/components/Login.test.js @@ -35,7 +35,7 @@ describe('Login component', () => { // Verify that the user information is displayed //expect(screen.getByText(/Hello testUser!/i)).toBeInTheDocument(); //expect(screen.getByText(/Your account was created on 1\/1\/2024/i)).toBeInTheDocument(); - expect(sendLogin.mock.calls[0][0]).toBe(true); + expect(sendLogin.mock.calls[0][0]).toBe(false); expect(sendUsername.mock.calls[0]).toBe(usernameInput); }); @@ -67,7 +67,7 @@ describe('Login component', () => { // Verify that the user information is not displayed //expect(screen.queryByText(/Hello testUser!/i)).toBeNull(); //expect(screen.queryByText(/Your account was created on/i)).toBeNull(); - expect(sendLogin.mock.calls[0][0]).toBe(false); + expect(sendLogin.mock.calls[0]).toBe([false]); expect(sendUsername.mock.calls[0]).toBe(usernameInput); }); });