diff --git a/test/settings.test.js b/test/settings.test.js index 55d79436..4165d193 100644 --- a/test/settings.test.js +++ b/test/settings.test.js @@ -776,8 +776,7 @@ describe('Settings', () => { it('Should throw error when yaml file does not exist', () => { settings.testing.clear(); - const error = `ENOENT: no such file or directory, open '${configurationFile}'`; - expect(settings.validate()).toEqual(expect.arrayContaining([error])); + expect(settings.validate()[0].startsWith(`ENOENT: no such file or directory, open `)).toBeTruthy(); }); it('Configuration shouldnt be valid when invalid QOS value is used', async () => {