Skip to content

Commit

Permalink
fixes import
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius committed Jan 11, 2024
1 parent bab0403 commit f0a3a54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/esm-tb-app/src/api/mambaReport.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchMambaReportData} from '..../../../../../packages/esm-commons-lib/src/api/api';
import { fetchMambaReportData } from '@ohri/openmrs-esm-ohri-commons-lib';
import { openmrsFetch } from '@openmrs/esm-framework';

// fetchMambaReportData.test.js
Expand All @@ -17,9 +17,7 @@ describe('fetchMambaReportData', () => {
data: {
results: [
{
record: [
{ value: '0' },
],
record: [{ value: '0' }],
},
],
},
Expand All @@ -31,7 +29,7 @@ describe('fetchMambaReportData', () => {
const result = await fetchMambaReportData(reportId);

expect(openmrsFetch).toHaveBeenCalledWith(`ws/rest/v1/mamba/report?report_id=${reportId}`);
expect(mockResponse.json).toHaveBeenCalled();
expect(result).toEqual(0);
expect(mockResponse.json).toHaveBeenCalled();
expect(result).toEqual(0);
});
});

0 comments on commit f0a3a54

Please sign in to comment.