Skip to content

Commit

Permalink
Fix customTableCell issue
Browse files Browse the repository at this point in the history
  • Loading branch information
im-vedant committed Dec 16, 2024
1 parent 4529421 commit 0edc76e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/MemberDetail/customTableCell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ describe('CustomTableCell', () => {
await waitFor(() => screen.getByTestId('custom-row'));

expect(screen.getByText('Test Event')).toBeInTheDocument();
expect(screen.getByText('1 May 2023')).toBeInTheDocument();
expect(
screen.getByText(
new Date('2023-05-01').toLocaleDateString(undefined, {
year: 'numeric',
month: 'long',
day: 'numeric',
timeZone: 'UTC',
}),
),
).toBeInTheDocument();
expect(screen.getByText('Yes')).toBeInTheDocument();
expect(screen.getByText('2')).toBeInTheDocument();

Expand Down

0 comments on commit 0edc76e

Please sign in to comment.