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

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
Fix failing tests after adding 'index' field and changes in PageRequest

feat #1969
  • Loading branch information
akshay-ap committed May 3, 2020
1 parent 810f49c commit 220ad9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/__tests__/patients/edit/EditPatient.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('Edit Patient', () => {
address: 'address',
code: 'P00001',
dateOfBirth: subDays(new Date(), 2).toISOString(),
index: 'givenName familyName suffixP00001',
} as Patient

let history: any
Expand Down
8 changes: 3 additions & 5 deletions src/__tests__/patients/list/ViewPatients.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe('Patients', () => {
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
rev: '',
index: 'test test P12345',
},
],
hasNext: false,
Expand Down Expand Up @@ -171,12 +172,9 @@ describe('Patients', () => {
expect(searchPatientsSpy).toHaveBeenLastCalledWith(
expectedSearchText,
{
sorts: [
{ field: 'fullName', direction: 'asc' },
{ field: 'code', direction: 'asc' },
],
sorts: [{ field: 'index', direction: 'asc' }],
},
{ number: 1, size: 1 },
{ number: 1, size: 1, nextPageInfo: { index: null }, direction: 'next' },
)
})
})
Expand Down

0 comments on commit 220ad9c

Please # to comment.