From df59af7222059416acab4ce12c27833752861ff0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 4 May 2026 01:01:34 +0000 Subject: [PATCH] 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). Applied via @cursor push command --- apps/server/src/sourceControl/GitLabCli.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/sourceControl/GitLabCli.test.ts b/apps/server/src/sourceControl/GitLabCli.test.ts index 5c7ee8d80c..d4e07efb88 100644 --- a/apps/server/src/sourceControl/GitLabCli.test.ts +++ b/apps/server/src/sourceControl/GitLabCli.test.ts @@ -175,7 +175,7 @@ layer("GitLabCli.layer", (it) => { assert.deepStrictEqual(result, { nameWithOwner: "octocat/t3code", - url: "https://gitlab.com/octocat/t3code.git", + url: "https://gitlab.com/octocat/t3code", sshUrl: "git@gitlab.com:octocat/t3code.git", }); }), @@ -243,7 +243,7 @@ layer("GitLabCli.layer", (it) => { assert.deepStrictEqual(result, { nameWithOwner: "octocat/t3code", - url: "https://gitlab.com/octocat/t3code.git", + url: "https://gitlab.com/octocat/t3code", sshUrl: "git@gitlab.com:octocat/t3code.git", }); expect(mockedRun).toHaveBeenNthCalledWith(