mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
await promise
This commit is contained in:
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
|
||||
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()));
|
||||
|
||||
Reference in New Issue
Block a user