Add tests for generateRegistries with an existing CODEQL_REGISTRIES_AUTH

This commit is contained in:
Andrew Eisenberg 2023-02-09 12:58:15 -08:00
parent 3c81243bb1
commit 5492b7d104
8 changed files with 58 additions and 10 deletions

2
lib/codeql.test.js generated
View file

@ -676,7 +676,7 @@ const injectedConfigMacro = ava_1.default.macro({
const hasConfigArg = args.some((arg) => arg.startsWith("--codescanning-config="));
t.false(hasConfigArg, "Should NOT have injected a codescanning config");
// should not have passed a qlconfig file
const hasQlconfigArg = args.find((arg) => arg.startsWith("--qlconfig="));
const hasQlconfigArg = args.some((arg) => arg.startsWith("--qlconfig="));
t.false(hasQlconfigArg, "Should NOT have passed a qlconfig file");
});
(0, ava_1.default)("passes a code scanning config AND qlconfig to the CLI when CLI config passing is enabled", async (t) => {