Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(i18n): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Mar 10, 2020
1 parent 3f58dd5 commit 0f0a7c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/HospitalRun.test.tsx
Expand Up @@ -295,7 +295,7 @@ describe('HospitalRun', () => {
expect(store.getActions()).toContainEqual(
addBreadcrumbs([
{ i18nKey: 'scheduling.appointments.label', location: '/appointments' },
{ i18nKey: 'scheduling.appointments.newAppointment', location: '/appointments/new' },
{ i18nKey: 'scheduling.appointments.new', location: '/appointments/new' },
{ i18nKey: 'dashboard.label', location: '/' },
]),
)
Expand Down
4 changes: 1 addition & 3 deletions src/__tests__/scheduling/appointments/Appointments.test.tsx
Expand Up @@ -62,9 +62,7 @@ describe('Appointments', () => {
})

const actualButtons: React.ReactNode[] = setButtonToolBarSpy.mock.calls[0][0]
expect((actualButtons[0] as any).props.children).toEqual(
'scheduling.appointments.newAppointment',
)
expect((actualButtons[0] as any).props.children).toEqual('scheduling.appointments.new')
})

it('should render a calendar with the proper events', async () => {
Expand Down
Expand Up @@ -62,7 +62,7 @@ describe('New Appointment', () => {
await setup()
})

expect(titleUtil.default).toHaveBeenCalledWith('scheduling.appointments.newAppointment')
expect(titleUtil.default).toHaveBeenCalledWith('scheduling.appointments.new')
})
})

Expand Down

0 comments on commit 0f0a7c3

Please sign in to comment.