From e431761e77c9926f03b44e760c994b6ba9c29bf8 Mon Sep 17 00:00:00 2001 From: lucille Date: Fri, 18 Oct 2024 10:48:23 +0300 Subject: [PATCH] fix failling test --- .../src/components/banner-tags/.patient-status-tag.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/esm-commons-lib/src/components/banner-tags/.patient-status-tag.test.tsx b/packages/esm-commons-lib/src/components/banner-tags/.patient-status-tag.test.tsx index 996faf7fc..ed87b20c7 100644 --- a/packages/esm-commons-lib/src/components/banner-tags/.patient-status-tag.test.tsx +++ b/packages/esm-commons-lib/src/components/banner-tags/.patient-status-tag.test.tsx @@ -82,7 +82,7 @@ describe('PatientStatusBannerTag', () => { }); (usePatientOutcome as jest.Mock).mockReturnValue({ - patientOutcome: 'Confirmed HIV negative infant (discharged from PMTCT)', + patientOutcome: 'HIV negative infant discharged from PMTCT', }); (usePatientFamilyNames as jest.Mock).mockReturnValue({ @@ -96,7 +96,7 @@ describe('PatientStatusBannerTag', () => { render(); expect(screen.getByText('HIV Negative')).toBeInTheDocument(); - expect(screen.getByText('Confirmed HIV negative infant (discharged from PMTCT)')).toBeInTheDocument(); + expect(screen.getByText('HIV negative infant discharged from PMTCT')).toBeInTheDocument(); }); it('should display mother’s name on the Infant banner', () => {