update security extended test for all platforms

This commit is contained in:
tombolton 2022-06-15 10:56:18 +01:00 committed by Tom Bolton
parent a568674c69
commit a27dc4fee4
3 changed files with 7 additions and 7 deletions

View file

@ -925,9 +925,9 @@ const mlPoweredQueriesMacro = ava_1.default.macro({
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.0", true, undefined, "security-and-quality", "~0.2.0");
// Test that we don't inject an ML-powered query pack if the user has already specified one.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.0", true, "codeql/javascript-experimental-atm-queries@0.0.1", "security-and-quality", "0.0.1");
// Test that the ~0.3.0 version of ML-powered queries are run on non-Windows platforms running
// `security-extended` on version 2.9.3+ of the CodeQL CLI.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.3", true, undefined, "security-extended", process.platform === "win32" ? undefined : "~0.3.0");
// Test that ML-powered queries are run on all platforms running `security-extended` on CodeQL
// CLI 2.9.3+.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.3", true, undefined, "security-extended", "~0.3.0");
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL
// CLI 2.9.3+.
(0, ava_1.default)(mlPoweredQueriesMacro, "2.9.3", true, undefined, "security-and-quality", "~0.3.0");

File diff suppressed because one or more lines are too long

View file

@ -1865,15 +1865,15 @@ test(
"security-and-quality",
"0.0.1"
);
// Test that the ~0.3.0 version of ML-powered queries are run on non-Windows platforms running
// `security-extended` on version 2.9.3+ of the CodeQL CLI.
// Test that ML-powered queries are run on all platforms running `security-extended` on CodeQL
// CLI 2.9.3+.
test(
mlPoweredQueriesMacro,
"2.9.3",
true,
undefined,
"security-extended",
process.platform === "win32" ? undefined : "~0.3.0"
"~0.3.0"
);
// Test that ML-powered queries are run on all platforms running `security-and-quality` on CodeQL
// CLI 2.9.3+.