Skip to content

Commit

Permalink
🧪: Cambios en tests - registro de usuarios
Browse files Browse the repository at this point in the history
  • Loading branch information
coral2742 committed May 9, 2024
1 parent 2b46dec commit c77485b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/RegisteredUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const RegisteredUsers = () => {
const hours = date.getHours().toString().padStart(2, '0');
const minutes = date.getMinutes().toString().padStart(2, '0');

return `${day}/${month}/${year} ${hours}:${minutes}`;
return `${day}/${month}/${year}`;
};

const handleShowHistory = async () => {
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/components/RegisteredUsers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Registered Users component', () => {
await waitFor(() => {

expect(screen.getByText('pablo')).toBeInTheDocument();
expect(screen.getByText('03/04/2024 12:34')).toBeInTheDocument();
expect(screen.getByText('03/04/2024')).toBeInTheDocument();
});

});
Expand All @@ -49,8 +49,8 @@ describe('Registered Users component', () => {

await waitFor(() => {
// Check if dates are formatted correctly
expect(screen.getByText('03/04/2024 12:34')).toBeInTheDocument();
expect(screen.getByText('02/04/2024 12:39')).toBeInTheDocument();
expect(screen.getByText('03/04/2024')).toBeInTheDocument();
expect(screen.getByText('02/04/2024')).toBeInTheDocument();
});

});
Expand Down

0 comments on commit c77485b

Please sign in to comment.