Support features key in version JSON output

This commit is contained in:
Michael B. Gale 2023-10-04 11:28:28 +01:00
parent 3dd4ad872b
commit 74b46628c3
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
30 changed files with 182 additions and 73 deletions

View file

@ -208,10 +208,10 @@ export function mockLanguagesInRepo(languages: string[]) {
return listLanguages;
}
export function mockCodeQLVersion(version) {
export function mockCodeQLVersion(version: string) {
return {
async getVersion() {
return version;
return CodeQL.makeVersionOutput(version);
},
} as CodeQL.CodeQL;
}