await promise
This commit is contained in:
parent
b86c3701ed
commit
d138b00811
3 changed files with 3 additions and 3 deletions
2
lib/config-utils.test.js
generated
2
lib/config-utils.test.js
generated
|
|
@ -79,7 +79,7 @@ ava_1.default("loading config saves config", async (t) => {
|
||||||
// Sanity check the saved config file does not already exist
|
// Sanity check the saved config file does not already exist
|
||||||
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
||||||
// Sanity check that getConfig throws before we have called initConfig
|
// Sanity check that getConfig throws before we have called initConfig
|
||||||
t.throwsAsync(configUtils.getConfig);
|
await t.throwsAsync(configUtils.getConfig);
|
||||||
const config1 = await configUtils.initConfig();
|
const config1 = await configUtils.initConfig();
|
||||||
// The saved config file should now exist
|
// The saved config file should now exist
|
||||||
t.true(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
t.true(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -83,7 +83,7 @@ test("loading config saves config", async t => {
|
||||||
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
t.false(fs.existsSync(configUtils.getPathToParsedConfigFile()));
|
||||||
|
|
||||||
// Sanity check that getConfig throws before we have called initConfig
|
// Sanity check that getConfig throws before we have called initConfig
|
||||||
t.throwsAsync(configUtils.getConfig);
|
await t.throwsAsync(configUtils.getConfig);
|
||||||
|
|
||||||
const config1 = await configUtils.initConfig();
|
const config1 = await configUtils.initConfig();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue