Update watchHistory test to expect rethrowSimple error

Instead of AxiosError
This commit is contained in:
davelopez
2024-05-29 14:58:17 +02:00
parent 518b0257ac
commit ec451f26f7
@@ -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