Skip to content

Commit

Permalink
chore: clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Mar 26, 2024
1 parent 18c445d commit a18eb16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('<TransactionDataListItemStructure /> 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 }));
Expand All @@ -47,7 +48,7 @@ describe('<TransactionDataListItemStructure /> 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();
Expand Down

0 comments on commit a18eb16

Please sign in to comment.