Skip to content

Commit

Permalink
test: remove unnecessary mocks from OrgUnitDimension test
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland committed Nov 22, 2024
1 parent d1b679d commit bf6441e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf6441e

Please sign in to comment.