Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Inessa Druzhkova committed Dec 23, 2024
1 parent a7bf219 commit 7148a16
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,6 @@ describe('DashboardModerationQueueListTable component', () => {
test('if no status_change_date displays N/A', () => {
const { getAllByText } = renderComponent({ events: sampleModerationEventsWithoutStatusChangeDate, count: 2});

sampleModerationEventsWithoutStatusChangeDate.forEach(event => {
expect(event.status_change_date).toBeUndefined();
const decisionDate = event.status_change_date
? formatUTCDate(event.status_change_date, DATE_FORMATS.LONG)
: EMPTY_PLACEHOLDER;

expect(isEqual(decisionDate, EMPTY_PLACEHOLDER)).toBe(true);
});
const elements = getAllByText(EMPTY_PLACEHOLDER);
expect(elements).toHaveLength(2);
});
Expand Down

0 comments on commit 7148a16

Please sign in to comment.