diff --git a/spec/javascript/alchemy_admin/utils/ajax.spec.js b/spec/javascript/alchemy_admin/utils/ajax.spec.js index a42956474f..eff8790f9b 100644 --- a/spec/javascript/alchemy_admin/utils/ajax.spec.js +++ b/spec/javascript/alchemy_admin/utils/ajax.spec.js @@ -55,6 +55,10 @@ describe("get", () => { }) it("network errors get rejected", async () => { + global.console = { + ...console, + error: jest.fn() + } xhrMock.get("http://localhost/users", () => { return Promise.reject(new Error()) })