Skip to content

Commit

Permalink
fix failling test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyjemutai committed Oct 18, 2024
1 parent 8fd7d1c commit e431761
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -96,7 +96,7 @@ describe('PatientStatusBannerTag', () => {

render(<PatientStatusBannerTag patientUuid={hivPositiveSampleUuid} />);
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', () => {
Expand Down

0 comments on commit e431761

Please sign in to comment.