fix tests
This commit is contained in:
parent
aa7e2fe91b
commit
a0b54fc7ab
3 changed files with 5 additions and 5 deletions
4
lib/config-utils.test.js
generated
4
lib/config-utils.test.js
generated
|
|
@ -76,8 +76,8 @@ 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(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', undefined, undefined, { owner: 'github', repo: 'example ' }, tmpDir, tmpDir, codeQL, tmpDir, 'token', 'https://github.example.com', logger);
|
||||
// The saved config file should now exist
|
||||
t.true(fs.existsSync(configUtils.getPathToParsedConfigFile(tmpDir)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue