Add detection for GitHub AE.
This commit is contained in:
parent
781e3bc540
commit
0656b2c1ad
10 changed files with 27 additions and 6 deletions
|
|
@ -230,6 +230,13 @@ test("getGitHubVersion", async (t) => {
|
|||
});
|
||||
t.deepEqual({ type: "ghes", version: "2.0" }, v2);
|
||||
|
||||
mockGetMetaVersionHeader("GitHub AE");
|
||||
const ghae = await util.getGitHubVersion({
|
||||
auth: "",
|
||||
url: "https://example.githubenterprise.com",
|
||||
});
|
||||
t.deepEqual({ type: "ghae" }, ghae);
|
||||
|
||||
mockGetMetaVersionHeader(undefined);
|
||||
const v3 = await util.getGitHubVersion({
|
||||
auth: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue