Account for versioning of ghe.com
This commit is contained in:
parent
760583e70d
commit
3ca2260643
8 changed files with 32 additions and 4 deletions
7
lib/util.test.js
generated
7
lib/util.test.js
generated
|
|
@ -182,6 +182,13 @@ function mockGetMetaVersionHeader(versionHeader) {
|
|||
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 = [
|
||||
// If no packs are loaded, status is false.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue