Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kahummer committed Jul 18, 2024
1 parent 19483b3 commit d264c88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ test('renders correctly and fetches data', async () => {
createdObservationLocationFlag
)
.reply(200, createdObservationLocationFlag)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.put(`/${FlagResourceType}/825b5491-9dad-4e28-ad73-521a31193de3`, locationUpdatedFlag as any)
.reply(200, locationUpdatedFlag)
.persist();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ export const productFlag: IFlag = {
},
};

export const createdEncounterProductFlag: IEncounter = {
export const createdEncounterProductFlag = {
resourceType: 'Encounter',
id: '15e2dd99-91f7-5dc8-b84b-14d546610f3c',
identifier: [{ use: 'usual', value: 'd8f6bb0d-a2ed-4bee-982b-846845930dbc' }],
Expand Down Expand Up @@ -649,8 +649,7 @@ export const createdEncounterProductFlag: IEncounter = {
},
};

export const createdObservationProductFlag: IObservation = {
resourceType: 'Observation',
export const createdObservationProductFlag = {
id: 'd15869ed-1ab1-5dc8-b07c-d384bc4ce9b8',
identifier: [{ use: 'usual', value: 'a065c211-cf3e-4b5b-972f-fdac0e45fef7' }],
status: 'final',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
productLocation,
productUpdatedFlag,
} from './fixtures';
import { IFlag } from '@smile-cdr/fhirts/dist/FHIR-R4/interfaces/IFlag';

jest.mock('@opensrp/notifications', () => ({
__esModule: true,
Expand Down Expand Up @@ -116,13 +117,14 @@ test('renders correctly and fetches data', async () => {
createdObservationProductFlag
)
.reply(200, createdObservationProductFlag)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.put(`/${FlagResourceType}/1a3a0d65-b6ad-40af-b6cd-2e8801614de9`, productUpdatedFlag as any)
.reply(200, productUpdatedFlag)
.persist();

const defaultProps: ProductFlagProps = {
fhirBaseUrl: fhirBaseURL,
flag: productFlag as any,
flag: productFlag as IFlag,
practitionerId: 'practitionerId',
inventoryGroupReference: 'Group/inventoryGroupId',
};
Expand Down

0 comments on commit d264c88

Please sign in to comment.