Update JSON parse error matcher
Looks like this text changed?
This commit is contained in:
parent
d431c9cd9d
commit
26c763485b
@ -29,7 +29,7 @@ describe("settings", () => {
|
|||||||
const settings = new SettingsProvider<CoderSettings>(pathToMockSettingsFile)
|
const settings = new SettingsProvider<CoderSettings>(pathToMockSettingsFile)
|
||||||
await settings.read()
|
await settings.read()
|
||||||
// This happens when we can't parse a JSON (usually error in file)
|
// 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(expect.stringMatching(/Unexpected token/))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
describe("with invalid settings file path", () => {
|
describe("with invalid settings file path", () => {
|
||||||
|
Reference in New Issue
Block a user