Account for versioning of ghe.com
This commit is contained in:
parent
760583e70d
commit
3ca2260643
8 changed files with 32 additions and 4 deletions
|
|
@ -237,6 +237,14 @@ test("getGitHubVersion", async (t) => {
|
|||
apiURL: undefined,
|
||||
});
|
||||
t.deepEqual({ type: util.GitHubVariant.DOTCOM }, v3);
|
||||
|
||||
mockGetMetaVersionHeader("ghe.com");
|
||||
const gheDotcom = await util.getGitHubVersion({
|
||||
auth: "",
|
||||
url: "https://foo.ghe.com",
|
||||
apiURL: undefined,
|
||||
});
|
||||
t.deepEqual({ type: util.GitHubVariant.GHE_DOTCOM }, gheDotcom);
|
||||
});
|
||||
|
||||
const ML_POWERED_JS_STATUS_TESTS: Array<[string[], string]> = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue