From 218ea09d2330c2124d52ed39b38ea851488e7ed3 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 3 May 2022 20:39:09 +0200 Subject: [PATCH] Removed no longer needed module mocking --- test/visits/NonOrphanVisits.test.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/visits/NonOrphanVisits.test.tsx b/test/visits/NonOrphanVisits.test.tsx index 136ee61d..121cdb59 100644 --- a/test/visits/NonOrphanVisits.test.tsx +++ b/test/visits/NonOrphanVisits.test.tsx @@ -9,12 +9,6 @@ import { Settings } from '../../src/settings/reducers/settings'; import { ReportExporter } from '../../src/common/services/ReportExporter'; import { SelectedServer } from '../../src/servers/data'; -jest.mock('react-router-dom', () => ({ - ...jest.requireActual('react-router-dom'), - useNavigate: jest.fn().mockReturnValue(jest.fn()), - useParams: jest.fn().mockReturnValue({}), -})); - describe('', () => { const exportVisits = jest.fn(); const getNonOrphanVisits = jest.fn();