Remove tests of internal function now its behaviour has been verified

This commit is contained in:
Sam Partington 2020-06-26 14:46:53 +01:00
parent f8c87948ab
commit 7c00663f08
6 changed files with 3 additions and 25 deletions

View file

@ -132,15 +132,6 @@ ava_1.default("load non-empty input", async (t) => {
t.deepEqual(actualConfig, expectedConfig);
});
});
ava_1.default("Remote and local configuration paths correctly identified", t => {
// If the path starts with ./, look locally
t.assert(configUtils.isLocal('./file'));
t.assert(configUtils.isLocal('./file@name'));
// Otherwise, if the path contains @ (branch specifier), assume it's a remote repo
t.false(configUtils.isLocal('octo-org/codeql-config/config.yaml@main'));
// Otherwise look locally (this is the fallback)
t.assert(configUtils.isLocal('file'));
});
ava_1.default("API client used when reading remote config", async (t) => {
return await util.withTmpDir(async (tmpDir) => {
process.env['RUNNER_TEMP'] = tmpDir;