await promise

This commit is contained in:
Robert Brignull
2020-07-16 09:04:16 +01:00
parent b86c3701ed
commit d138b00811
3 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ ava_1.default("loading config saves config", async (t) => {
// Sanity check the saved config file does not already exist
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile()));
// Sanity check that getConfig throws before we have called initConfig
t.throwsAsync(configUtils.getConfig);
await t.throwsAsync(configUtils.getConfig);
const config1 = await configUtils.initConfig();
// The saved config file should now exist
t.true(fs.existsSync(configUtils.getPathToParsedConfigFile()));