Skip to content

Commit df1160c

Browse files
committed
Fix GitLab test URL assertions to match normalizeRepositoryCloneUrls using web_url
The normalizeRepositoryCloneUrls function was changed to return raw.web_url instead of raw.http_url_to_repo || raw.web_url, but the test assertions still expected the http_url_to_repo value (with .git suffix). Updated both assertions to expect the web_url value (without .git suffix).
1 parent 4b30c82 commit df1160c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/server/src/sourceControl/GitLabCli.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ layer("GitLabCli.layer", (it) => {
175175

176176
assert.deepStrictEqual(result, {
177177
nameWithOwner: "octocat/t3code",
178-
url: "https://gitlab.com/octocat/t3code.git",
178+
url: "https://gitlab.com/octocat/t3code",
179179
sshUrl: "git@gitlab.com:octocat/t3code.git",
180180
});
181181
}),
@@ -243,7 +243,7 @@ layer("GitLabCli.layer", (it) => {
243243

244244
assert.deepStrictEqual(result, {
245245
nameWithOwner: "octocat/t3code",
246-
url: "https://gitlab.com/octocat/t3code.git",
246+
url: "https://gitlab.com/octocat/t3code",
247247
sshUrl: "git@gitlab.com:octocat/t3code.git",
248248
});
249249
expect(mockedRun).toHaveBeenNthCalledWith(

0 commit comments

Comments
 (0)