From 7148a166ac0a18d2d3e50c637c71aa3cb20e2a46 Mon Sep 17 00:00:00 2001 From: Inessa Druzhkova Date: Mon, 23 Dec 2024 14:52:08 +0100 Subject: [PATCH] removed redundant code --- .../components/DashboardModerationQueueListTable.test.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/react/src/__tests__/components/DashboardModerationQueueListTable.test.js b/src/react/src/__tests__/components/DashboardModerationQueueListTable.test.js index dc9709b14..717fe2a80 100644 --- a/src/react/src/__tests__/components/DashboardModerationQueueListTable.test.js +++ b/src/react/src/__tests__/components/DashboardModerationQueueListTable.test.js @@ -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); });