Use GITHUB_DOTCOM_URL so URL deduplication works

This commit is contained in:
Robert Brignull 2020-10-05 16:44:43 +01:00
parent 28a5b954e7
commit b185050563
6 changed files with 12 additions and 12 deletions

View file

@ -125,15 +125,15 @@ test("getExtraOptionsEnvParam() fails on invalid JSON", (t) => {
});
test("parseGithubUrl", (t) => {
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com/");
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com/");
t.deepEqual(util.parseGithubUrl("github.com"), "https://github.com");
t.deepEqual(util.parseGithubUrl("https://github.com"), "https://github.com");
t.deepEqual(
util.parseGithubUrl("https://api.github.com"),
"https://github.com/"
"https://github.com"
);
t.deepEqual(
util.parseGithubUrl("https://github.com/foo/bar"),
"https://github.com/"
"https://github.com"
);
t.deepEqual(