From bf6441e81afa9c6b74fb891f0a506573e58d61dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Henrik=20=C3=98verland?= Date: Fri, 22 Nov 2024 14:30:14 +0100 Subject: [PATCH] test: remove unnecessary mocks from OrgUnitDimension test --- .../__tests__/OrgUnitDimension.spec.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js b/src/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js index de54b1d68..9f85b035b 100644 --- a/src/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +++ b/src/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js @@ -2,23 +2,6 @@ import { shallow } from 'enzyme' import React from 'react' import OrgUnitDimension from '../OrgUnitDimension.js' -jest.mock('@dhis2/app-runtime', () => ({ - useDataEngine: () => ({ - query: jest.fn(), - }), -})) - -jest.mock('../../../api/organisationUnits.js', () => ({ - apiFetchOrganisationUnitGroups: jest.fn().mockResolvedValue([]), - apiFetchOrganisationUnitLevels: jest.fn().mockResolvedValue([]), -})) - -jest.mock('../../../locales/index.js', () => ({ - t: (key) => key, -})) - -afterEach(jest.clearAllMocks) - describe('The OrgUnitDimension component', () => { let props let shallowOrgUnitDimension