From fc107d8e33a2508b8a5f9eeced3d624d57c3ed88 Mon Sep 17 00:00:00 2001 From: Florian Bouron Date: Sat, 17 Feb 2024 14:27:01 +0100 Subject: [PATCH] Fix unit tests with the timezone --- .../TransactionListing/TransactionListing.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/extension/src/components/organisms/TransactionListing/TransactionListing.test.tsx b/packages/extension/src/components/organisms/TransactionListing/TransactionListing.test.tsx index 410347ebc..eb0afafeb 100644 --- a/packages/extension/src/components/organisms/TransactionListing/TransactionListing.test.tsx +++ b/packages/extension/src/components/organisms/TransactionListing/TransactionListing.test.tsx @@ -35,13 +35,13 @@ describe('TransactionListing', () => { test('renders the list of transactions', async () => { const screen = render(); expect(screen.getByText('TrustLine transaction')).toBeInTheDocument(); - expect(screen.getByText('Feb 17, 2024 - 13:48')).toBeInTheDocument(); + expect(screen.getByText('Feb 17, 2024 - 12:48')).toBeInTheDocument(); expect(screen.getByText('Mint NFT')).toBeInTheDocument(); - expect(screen.getByText('Feb 17, 2024 - 13:47')).toBeInTheDocument(); + expect(screen.getByText('Feb 17, 2024 - 12:47')).toBeInTheDocument(); expect(screen.getByText('Payment sent - 50 XRP')).toBeInTheDocument(); - expect(screen.getByText('Feb 17, 2024 - 13:46')).toBeInTheDocument(); + expect(screen.getByText('Feb 17, 2024 - 12:46')).toBeInTheDocument(); expect(screen.getByText('Payment received - 10,000 XRP')).toBeInTheDocument(); - expect(screen.getByText('Feb 17, 2024 - 13:44')).toBeInTheDocument(); + expect(screen.getByText('Feb 17, 2024 - 12:44')).toBeInTheDocument(); }); test('renders the transaction details when the transaction is clicked', async () => {