Skip to content

Commit 8776812

Browse files
committed
test(client-runtime): use GitLab's web_url in the clone fixture
1 parent f45a364 commit 8776812

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/client-runtime/src/operations/projects.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ describe("add project shared logic", () => {
8686
expect(
8787
getDefaultCloneUrl({
8888
provider: "gitlab",
89-
url: "https://gitlab.com/group/project.git",
89+
// The lookup returns GitLab's web_url here, which git clones as well.
90+
url: "https://gitlab.com/group/project",
9091
sshUrl: "[email protected]:group/project.git",
9192
}),
92-
).toBe("https://gitlab.com/group/project.git");
93+
).toBe("https://gitlab.com/group/project");
9394
});
9495

9596
it("preserves existing clone transport behavior for other providers", () => {

0 commit comments

Comments
 (0)