Skip to content

Commit

Permalink
Intento arreglo de tests 15, encontrando todos los errores
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289039 committed Mar 14, 2024
1 parent 140a93f commit c847537
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/src/components/Login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ 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(false);
expect(sendUsername.mock.calls[0][0]).toBe('testUser');
expect(screen.getByText(/Your account was created on 1\/1\/2024/i)).toBeInTheDocument();
// expect(sendLogin.mock.calls[0][0]).toBe(false);
// expect(sendUsername.mock.calls[0][0]).toBe('testUser');
});

it('should handle error when logging in', async () => {
Expand Down Expand Up @@ -66,8 +66,8 @@ 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]).toBe(undefined);
expect(sendUsername.mock.calls[0]).toBe(undefined);
expect(screen.queryByText(/Your account was created on/i)).toBeNull();
// expect(sendLogin.mock.calls[0]).toBe(undefined);
// expect(sendUsername.mock.calls[0]).toBe(undefined);
});
});

0 comments on commit c847537

Please sign in to comment.