diff --git a/test/unit/node/settings.test.ts b/test/unit/node/settings.test.ts index 68bf51784..59b28b9e3 100644 --- a/test/unit/node/settings.test.ts +++ b/test/unit/node/settings.test.ts @@ -29,7 +29,7 @@ describe("settings", () => { const settings = new SettingsProvider(pathToMockSettingsFile) await settings.read() // This happens when we can't parse a JSON (usually error in file) - expect(logger.warn).toHaveBeenCalledWith("Unexpected token t in JSON at position 29") + expect(logger.warn).toHaveBeenCalledWith("Unexpected token 't', ...\"lloWorld:\"test\"}\" is not valid JSON") }) }) describe("with invalid settings file path", () => {