From 7f4d236c81b4d2faea370c750f25e69dc93842bd Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 5 Apr 2024 17:29:13 -0700 Subject: [PATCH] fix: more minor cleanups from Romulo --- package-lock.json | 2 +- package.json | 2 +- src/search-modal/SearchModal.test.jsx | 2 +- src/search-modal/SearchUI.test.jsx | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 93db7beb7d..92069ecbda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "react-datepicker": "^4.13.0", "react-dom": "17.0.2", "react-helmet": "^6.1.0", - "react-instantsearch": "7.7.0", + "react-instantsearch": "^7.7.0", "react-redux": "7.2.9", "react-responsive": "9.0.2", "react-router": "6.16.0", diff --git a/package.json b/package.json index d4d207463d..edad1c2528 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "react-datepicker": "^4.13.0", "react-dom": "17.0.2", "react-helmet": "^6.1.0", - "react-instantsearch": "7.7.0", + "react-instantsearch": "^7.7.0", "react-redux": "7.2.9", "react-responsive": "9.0.2", "react-router": "6.16.0", diff --git a/src/search-modal/SearchModal.test.jsx b/src/search-modal/SearchModal.test.jsx index bdfca8767d..5c1b5a6881 100644 --- a/src/search-modal/SearchModal.test.jsx +++ b/src/search-modal/SearchModal.test.jsx @@ -33,7 +33,7 @@ const RootWrapper = () => ( ); -describe('', () => { +describe('', () => { beforeEach(() => { initializeMockApp({ authenticatedUser: { diff --git a/src/search-modal/SearchUI.test.jsx b/src/search-modal/SearchUI.test.jsx index 16de9dfa18..a790d57e5c 100644 --- a/src/search-modal/SearchUI.test.jsx +++ b/src/search-modal/SearchUI.test.jsx @@ -67,9 +67,6 @@ describe('', () => { }); afterEach(async () => { - // Unfortunately it seems a slight delay is necessary to capture all the asynchronous Meilisearch calls. - // If we don't do this, some network requests happen while our fetchMock is inactive, resulting in a warning. - // await new Promise(r => { setTimeout(r, 500); }); fetchMock.mockReset(); });