Skip to content

Commit

Permalink
Intento arreglo de tests 6
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289039 committed Mar 14, 2024
1 parent 9a745a0 commit dcd7c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/Login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' } });
Expand Down

0 comments on commit dcd7c77

Please sign in to comment.