diff --git a/client-src/index.js b/client-src/index.js index 424aeb08fa..5dd697e983 100644 --- a/client-src/index.js +++ b/client-src/index.js @@ -198,7 +198,7 @@ const onSocketMessage = { log.error(error); }, close() { - log.error("Disconnected!"); + log.info("Disconnected!"); sendMessage("Close"); }, diff --git a/test/client/index.test.js b/test/client/index.test.js index 8d9826b63b..30e3cb54cb 100644 --- a/test/client/index.test.js +++ b/test/client/index.test.js @@ -214,7 +214,7 @@ describe("index", () => { test("should run onSocketMessage.close", () => { onSocketMessage.close(); - expect(log.log.error.mock.calls[0][0]).toMatchSnapshot(); + expect(log.log.info.mock.calls[0][0]).toMatchSnapshot(); expect(sendMessage.mock.calls[0][0]).toMatchSnapshot(); }); @@ -223,7 +223,7 @@ describe("index", () => { onSocketMessage.hot(); onSocketMessage.close(); - expect(log.log.error.mock.calls[0][0]).toMatchSnapshot(); + expect(log.log.info.mock.calls[1][0]).toMatchSnapshot(); expect(sendMessage.mock.calls[0][0]).toMatchSnapshot(); }); @@ -232,7 +232,7 @@ describe("index", () => { onSocketMessage.liveReload(); onSocketMessage.close(); - expect(log.log.error.mock.calls[0][0]).toMatchSnapshot(); + expect(log.log.info.mock.calls[1][0]).toMatchSnapshot(); expect(sendMessage.mock.calls[0][0]).toMatchSnapshot(); });