Move makeVersionOutput to testing-utils.js
This commit is contained in:
parent
a402be8739
commit
e827ad5b71
18 changed files with 110 additions and 114 deletions
4
lib/config-utils.test.js
generated
4
lib/config-utils.test.js
generated
|
|
@ -1177,7 +1177,7 @@ const calculateAugmentationErrorMacro = ava_1.default.macro({
|
|||
});
|
||||
const codeQL = (0, codeql_1.setCodeQL)({
|
||||
packDownload: packDownloadStub,
|
||||
getVersion: () => Promise.resolve((0, codeql_1.makeVersionOutput)("2.10.5")),
|
||||
getVersion: () => Promise.resolve((0, testing_utils_1.makeVersionOutput)("2.10.5")),
|
||||
});
|
||||
// packs are supplied for go, java, and python
|
||||
// analyzed languages are java, javascript, and python
|
||||
|
|
@ -1221,7 +1221,7 @@ const calculateAugmentationErrorMacro = ava_1.default.macro({
|
|||
},
|
||||
]);
|
||||
const codeQL = (0, codeql_1.setCodeQL)({
|
||||
getVersion: () => Promise.resolve((0, codeql_1.makeVersionOutput)("2.10.4")),
|
||||
getVersion: () => Promise.resolve((0, testing_utils_1.makeVersionOutput)("2.10.4")),
|
||||
});
|
||||
await t.throwsAsync(async () => {
|
||||
return await configUtils.downloadPacks(codeQL, [languages_1.Language.javascript, languages_1.Language.java, languages_1.Language.python], {}, sampleApiDetails, registriesInput, tmpDir, logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue