From 0182da310feb08b4c6ffca8e1079e7d89c2603e2 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Wed, 13 Jan 2021 21:40:11 -0600 Subject: [PATCH] Fixed the change that utilized the requestedByFullName for defining the requestedBy from the custom hook --- .../imagings/search/ImagingRequestTable.test.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/__tests__/imagings/search/ImagingRequestTable.test.tsx b/src/__tests__/imagings/search/ImagingRequestTable.test.tsx index 5d887de83e..c300a6fe6a 100644 --- a/src/__tests__/imagings/search/ImagingRequestTable.test.tsx +++ b/src/__tests__/imagings/search/ImagingRequestTable.test.tsx @@ -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) => { @@ -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) }) })