Rename VersionOutput to VersionInfo
This commit is contained in:
parent
49b94f1a2d
commit
bcbb900532
19 changed files with 60 additions and 68 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue