Rename VersionOutput to VersionInfo

This commit is contained in:
Michael B. Gale 2023-10-04 15:54:34 +01:00
parent 49b94f1a2d
commit bcbb900532
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
19 changed files with 60 additions and 68 deletions

View file

@ -209,16 +209,16 @@ export function mockLanguagesInRepo(languages: string[]) {
}
/**
* Constructs a `VersionOutput` object for testing purposes only.
* Constructs a `VersionInfo` object for testing purposes only.
*/
export const makeVersionOutput = (version: string): CodeQL.VersionOutput => ({
export const makeVersionInfo = (version: string): CodeQL.VersionInfo => ({
version,
});
export function mockCodeQLVersion(version: string) {
return {
async getVersion() {
return makeVersionOutput(version);
return makeVersionInfo(version);
},
} as CodeQL.CodeQL;
}