diff --git a/client/src/store/historyStore/model/watchHistory.test.js b/client/src/store/historyStore/model/watchHistory.test.js index e0984c7fe09..6669c0200e5 100644 --- a/client/src/store/historyStore/model/watchHistory.test.js +++ b/client/src/store/historyStore/model/watchHistory.test.js @@ -93,7 +93,7 @@ describe("watchHistory", () => { await watchHistoryOnce(); } catch (error) { console.log(error); - expect(error.response.status).toBe(500); + expect(error.message).toContain("500"); } // Need to reset axios mock here. Smells like a bug, // maybe in axios-mock-adapter, maybe on our side