Skip to content

Commit

Permalink
test: try to fix test timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorJorgeFGA committed Sep 22, 2024
1 parent da2270c commit f6c05b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/__tests__/cardMetrica.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import database from '../db';
jest.mock('../db', () => ({
get: jest.fn(() => ({
query: jest.fn().mockReturnValue({
fetch: jest.fn(() => Promise.resolve([{ valor: 80, dataHora: '2024-09-18T12:00:00Z' }])),
fetch: jest.fn(() => Promise.resolve([{ valor: 80, dataHora: '2024-09-18T12:00:00-03:00' }])),
}),
})),
}));
Expand Down Expand Up @@ -184,7 +184,7 @@ describe('CardMetrica Component', () => {
const { getByText } = render(<CardMetrica item={mockItemFrequencia} />);

await waitFor(() => {
expect(getByText('18/09/2024 às 09:00')).toBeTruthy();
expect(getByText('18/09/2024 às 12:00')).toBeTruthy();
});
});

Expand Down

0 comments on commit f6c05b8

Please sign in to comment.