Skip to content

Commit

Permalink
fixed org dashboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamarTG committed Oct 26, 2023
1 parent 8590377 commit 68939fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ describe('Organisation Dashboard Page', () => {
// Checking if events are rendered
expect(screen.getByText('Event 1')).toBeInTheDocument();
expect(
screen.getByText(`${dayjs(new Date()).add(1, 'day').toString()}`)
screen.getByText(
`${dayjs(dayjs(new Date()).add(1, 'day')).format('MMM D, YYYY')}`
)
).toBeInTheDocument();

// Checking if posts are rendered
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const MOCKS = [
_id: 1,
title: 'Event 1',
description: 'Event Test',
startDate: dayjs(new Date()).add(1, 'day').toString(),
startDate: dayjs(new Date()).add(1, 'day'),
endDate: dayjs(new Date()).add(3, 'day'),
location: 'New Delhi',
startTime: '',
Expand Down

0 comments on commit 68939fe

Please sign in to comment.