Fix failing test
This commit is contained in:
@@ -319,7 +319,10 @@ describe("Variant Analysis Manager", () => {
|
|||||||
filesThatExist,
|
filesThatExist,
|
||||||
qlxFilesThatExist,
|
qlxFilesThatExist,
|
||||||
filesThatDoNotExist,
|
filesThatDoNotExist,
|
||||||
dependenciesToCheck = ["codeql/java-all"],
|
|
||||||
|
// A subset of dependencies that we expect should be in the qlpack file.
|
||||||
|
// The first dependency is assumed to be the core library.
|
||||||
|
dependenciesToCheck = ["codeql/javascript-all"],
|
||||||
checkVersion = true,
|
checkVersion = true,
|
||||||
}: {
|
}: {
|
||||||
queryPath: string;
|
queryPath: string;
|
||||||
@@ -382,10 +385,13 @@ describe("Variant Analysis Manager", () => {
|
|||||||
if (checkVersion) {
|
if (checkVersion) {
|
||||||
expect(qlpackContents.version).toEqual("0.0.0");
|
expect(qlpackContents.version).toEqual("0.0.0");
|
||||||
}
|
}
|
||||||
expect(qlpackContents.dependencies?.["codeql/javascript-all"]).toEqual(
|
|
||||||
"*",
|
|
||||||
);
|
|
||||||
|
|
||||||
|
// Assume the first dependency to check is the core library.
|
||||||
|
if (dependenciesToCheck.length > 0) {
|
||||||
|
expect(qlpackContents.dependencies?.[dependenciesToCheck[0]]).toEqual(
|
||||||
|
"*",
|
||||||
|
);
|
||||||
|
}
|
||||||
const qlpackLockContents = load(
|
const qlpackLockContents = load(
|
||||||
packFS.fileContents("codeql-pack.lock.yml").toString("utf-8"),
|
packFS.fileContents("codeql-pack.lock.yml").toString("utf-8"),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user