From dcd7c772344a628ec6ed1d0e31db38911fea769e Mon Sep 17 00:00:00 2001 From: uo289039 Date: Thu, 14 Mar 2024 13:20:14 +0100 Subject: [PATCH] Intento arreglo de tests 6 --- webapp/src/components/Login.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/Login.test.js b/webapp/src/components/Login.test.js index 158bcd08..b6b8ede6 100644 --- a/webapp/src/components/Login.test.js +++ b/webapp/src/components/Login.test.js @@ -50,7 +50,7 @@ describe('Login component', () => { // Mock the axios.post request to simulate an error response mockAxios.onPost('http://localhost:8000/login').reply(401, { error: 'Unauthorized' }); - expect(sendLogin.mock.calls[0]).toBe(true); + expect(sendLogin.mock.calls[0]).toBe(false); expect(sendUsername.mock.calls[0]).toBe(usernameInput); // Simulate user input fireEvent.change(usernameInput, { target: { value: 'testUser' } });