fix tests

This commit is contained in:
Robert Brignull 2020-08-28 17:28:05 +01:00
parent aa7e2fe91b
commit a0b54fc7ab
3 changed files with 5 additions and 5 deletions

View file

@ -100,8 +100,8 @@ test("loading config saves config", async t => {
// Sanity check the saved config file does not already exist
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile(tmpDir)));
// Sanity check that getConfig throws before we have called initConfig
await t.throwsAsync(() => configUtils.getConfig(tmpDir, logger));
// Sanity check that getConfig returns undefined before we have called initConfig
t.deepEqual(await configUtils.getConfig(tmpDir, logger), undefined);
const config1 = await configUtils.initConfig(
'javascript,python',