From aa1061bb908056085808128dcd45a5b5b7a311f6 Mon Sep 17 00:00:00 2001 From: Dmytro-Melnyshyn Date: Mon, 16 Oct 2023 17:28:30 +0300 Subject: [PATCH] remove fireEvent from 'act' wrapper --- src/components/BrowseResultsList/BrowseResultsList.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/BrowseResultsList/BrowseResultsList.test.js b/src/components/BrowseResultsList/BrowseResultsList.test.js index 6a6a0cca9..ea6dc89b7 100644 --- a/src/components/BrowseResultsList/BrowseResultsList.test.js +++ b/src/components/BrowseResultsList/BrowseResultsList.test.js @@ -155,7 +155,7 @@ describe('BrowseResultsList', () => { }, }); - await act(async () => fireEvent.click(screen.getByText(defaultProps.browseData[2].fullCallNumber))); + fireEvent.click(screen.getByText(defaultProps.browseData[2].fullCallNumber)) expect(history.location.search).toContain('?filters=shared.true%2Cshared.false%2CtenantId.college'); }); @@ -181,7 +181,7 @@ describe('BrowseResultsList', () => { browseData: contributorsData, }); - await act(async () => fireEvent.click(screen.getByText(contributorsData[0].name))); + fireEvent.click(screen.getByText(contributorsData[0].name)) expect(history.location.search).toContain( '?filters=searchContributors.2b94c631-fca9-4892-a730-03ee529ffe2a%2Cshared.true%2Cshared.false%2CtenantId.college' @@ -209,7 +209,7 @@ describe('BrowseResultsList', () => { browseData: subjectsData, }); - await act(async () => fireEvent.click(screen.getByText(subjectsData[0].value))); + fireEvent.click(screen.getByText(subjectsData[0].value)) expect(history.location.search).toContain('?filters=shared.true%2Cshared.false%2CtenantId.college'); });