From f0a3a545a35cc8de0843dfd947b72260161a1ca1 Mon Sep 17 00:00:00 2001 From: pirupius Date: Thu, 11 Jan 2024 21:04:07 +0300 Subject: [PATCH] fixes import --- packages/esm-tb-app/src/api/mambaReport.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/esm-tb-app/src/api/mambaReport.test.ts b/packages/esm-tb-app/src/api/mambaReport.test.ts index b5e5acda0..bb30ae92a 100644 --- a/packages/esm-tb-app/src/api/mambaReport.test.ts +++ b/packages/esm-tb-app/src/api/mambaReport.test.ts @@ -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 @@ -17,9 +17,7 @@ describe('fetchMambaReportData', () => { data: { results: [ { - record: [ - { value: '0' }, - ], + record: [{ value: '0' }], }, ], }, @@ -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); }); });