Skip to content

Commit

Permalink
Fixed-Issue-#1266 Bug Report When a new post is added, the latest pos…
Browse files Browse the repository at this point in the history
…t section in the organization's dashboard becomes distorted Updated
  • Loading branch information
gauravsingh94 committed Jan 3, 2024
1 parent e2d895a commit d3642ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/OrganizationDashCards/CardItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Testing the Organization Card', () => {

expect(screen.getByText(/Event Title/i)).toBeInTheDocument();
expect(
screen.getByText(dayjs(props.time).format('MMM D, YYYY'))
screen.getByText(dayjs(props.time).format('D MMM YYYY'))
).toBeInTheDocument();
expect(screen.getByText(/Event Location/i)).toBeInTheDocument();
});
Expand All @@ -40,7 +40,7 @@ describe('Testing the Organization Card', () => {

expect(screen.getByText(/Post Title/i)).toBeInTheDocument();
expect(
screen.getByText(dayjs(props.time).format('MMM D, YYYY'))
screen.getByText(dayjs(props.time).format('D MMM YYYY'))
).toBeInTheDocument();
expect(screen.getByText(/John Doe/i)).toBeInTheDocument();
});
Expand Down

0 comments on commit d3642ed

Please sign in to comment.