From 0c50bf7a28b6176c6f05f87979943f44a5003afe Mon Sep 17 00:00:00 2001 From: Priyanka Terala Date: Wed, 18 Dec 2024 16:47:49 +0530 Subject: [PATCH] fix test --- src/routes/RequestsRoute.test.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/RequestsRoute.test.js b/src/routes/RequestsRoute.test.js index e59f5e31..c85beafd 100644 --- a/src/routes/RequestsRoute.test.js +++ b/src/routes/RequestsRoute.test.js @@ -234,6 +234,8 @@ const mockedRequest = { instanceId: 'instanceId', item: { barcode: 'itemBarcode', + retrievalServicePointId: '3a40852d-49fd-4df2-a1f9-6e2641a6e91f', + retrievalServicePointName: 'Circ Desk 1', }, requester: { barcode: 'requesterBarcode', @@ -357,6 +359,10 @@ describe('RequestsRoute', () => { } ], }, + item: { + retrievalServicePointId: '3a40852d-49fd-4df2-a1f9-6e2641a6e91f', + retrievalServicePointName: 'Circ Desk 1', + }, tags: { tagList: ['tag1', 'tag2'], }, @@ -628,7 +634,7 @@ describe('RequestsRoute', () => { expect(printContent).toBeInTheDocument(); }); - it('should trigger "exportCsv"', async () => { + it("should trigger 'exportCsv'", async () => { await userEvent.click(screen.getByRole('button', { name: 'ui-requests.exportSearchResultsToCsv' })); await waitFor(() => {