From a18eb168b808a274e8431960a5e861e40c38ea82 Mon Sep 17 00:00:00 2001 From: KD Date: Tue, 26 Mar 2024 09:47:16 +0100 Subject: [PATCH] chore: clean up tests --- .../transactionDataListItem.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItem.test.tsx b/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItem.test.tsx index 7ffb09c50..754f61c70 100644 --- a/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItem.test.tsx +++ b/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItem.test.tsx @@ -25,6 +25,7 @@ describe(' component', () => { expect(transactionTypeHeading).toBeInTheDocument(); }); + // fails on the local run, but passes on the CI for relative unix timestamps (CI server location == UTC 0) it('renders the formatted date', () => { const unixTimestamp = 1628841600; render(createTestComponent({ unixTimestamp })); @@ -47,7 +48,7 @@ describe(' component', () => { expect(formattedUsdEstimate).toBeInTheDocument(); }); - it('renders "Unknown transaction type" for transactions with an undefined type', () => { + it('renders "Unknown" for transactions with an undefined type', () => { render(createTestComponent({})); const unknownTransactionTypeHeading = screen.getByText('Unknown'); expect(unknownTransactionTypeHeading).toBeInTheDocument();