From 5df4e15e3153b92bf352252e35fb4f35e3c52651 Mon Sep 17 00:00:00 2001 From: coral2742 Date: Thu, 9 May 2024 02:53:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA:=20Tests=20finales=20a=C3=B1adidos?= =?UTF-8?q?=20(fechas)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/RegisteredUsers.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/RegisteredUsers.test.js b/webapp/src/components/RegisteredUsers.test.js index ca3d7a7f..1b0ac1a3 100644 --- a/webapp/src/components/RegisteredUsers.test.js +++ b/webapp/src/components/RegisteredUsers.test.js @@ -35,8 +35,8 @@ describe('Registered Users component', () => { it('should format dates correctly', async () => { const mockRegisteredUsers = [ - ['username1', '2024-01-01T12:34:56Z'], - ['username2', '2024-02-15T09:30:00Z'], + ['username1', '2024-04-03T12:34:56Z'], + ['username2', '2024-04-02T12:39:56Z'], ]; mockAxios.onGet('http://localhost:8000/getregisteredusers').reply(200, mockRegisteredUsers); @@ -49,8 +49,8 @@ describe('Registered Users component', () => { await waitFor(() => { // Check if dates are formatted correctly - expect(screen.getByText('01/01/2024 13:34')).toBeInTheDocument(); - expect(screen.getByText('15/02/2024 10:30')).toBeInTheDocument(); + expect(screen.getByText('03/04/2024 14:34')).toBeInTheDocument(); + expect(screen.getByText('02/04/2024 14:39')).toBeInTheDocument(); }); });