Tidy up test

This commit is contained in:
Sam Partington 2020-07-31 11:10:00 +01:00
parent ca2b74f2f8
commit f57bf21879
3 changed files with 9 additions and 8 deletions

View file

@ -264,7 +264,10 @@ test("Default queries and those from config file can be overridden in action fil
queries:
- uses: ./foo`;
// This config item should take precedence.
fs.writeFileSync(path.join(tmpDir, 'input'), inputFileContents, 'utf8');
setInput('config-file', 'input');
// This config item should take precedence over the config file and the default queries.
setInput('queries', './override');
fs.mkdirSync(path.join(tmpDir, 'foo'));
@ -289,8 +292,6 @@ test("Default queries and those from config file can be overridden in action fil
},
});
fs.writeFileSync(path.join(tmpDir, 'input'), inputFileContents, 'utf8');
setInput('config-file', 'input');
setInput('languages', 'javascript');
const config = await configUtils.initConfig();