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

Commit

Permalink
Merge pull request #271 from kcdraidgroup/jacobmgevans
Browse files Browse the repository at this point in the history
Fixed the change that utilized the requestedByFullName for defining the requestedBy from the custom hook
  • Loading branch information
JacobMGEvans authored Jan 14, 2021
2 parents 8d82cd8 + 0182da3 commit 3888dc5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/__tests__/imagings/search/ImagingRequestTable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ describe('Imaging Request Table', () => {
id: '1234',
type: 'imaging type',
patient: 'patient',
fullName: 'full name',
status: 'requested',
fullName: 'Jean Luc Picard',
requestedOn: new Date().toISOString(),
status: 'requested',
requestedBy: 'some user',
// requestedByFullName gets passed into the custom hook that spreads it into the save function
requestedByFullName: 'Full Name Mock',
} as Imaging

const setup = (searchRequest: ImagingSearchRequest) => {
Expand Down Expand Up @@ -45,7 +47,7 @@ describe('Imaging Request Table', () => {
format(new Date(expectedImaging.requestedOn), 'yyyy-MM-dd hh:mm a'),
)
expect(cells[3]).toHaveTextContent(expectedImaging.fullName)
expect(cells[4]).toHaveTextContent(expectedImaging.requestedBy)
expect(cells[4]).toHaveTextContent(expectedImaging.requestedByFullName as string)
expect(cells[5]).toHaveTextContent(expectedImaging.status)
})
})

0 comments on commit 3888dc5

Please sign in to comment.