Skip to content

Commit 4e7def2

Browse files
committed
Update invalid JSON test
Seems the verbiage has changed.
1 parent ccc5f82 commit 4e7def2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/node/settings.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("settings", () => {
2929
const settings = new SettingsProvider<CoderSettings>(pathToMockSettingsFile)
3030
await settings.read()
3131
// This happens when we can't parse a JSON (usually error in file)
32-
expect(logger.warn).toHaveBeenCalledWith("Unexpected token t in JSON at position 29")
32+
expect(logger.warn).toHaveBeenCalledWith("Unexpected token 't', ...\"lloWorld:\"test\"}\" is not valid JSON")
3333
})
3434
})
3535
describe("with invalid settings file path", () => {

0 commit comments

Comments
 (0)