@@ -65,13 +65,9 @@ describe("add project shared logic", () => {
6565 expect ( normalizePastedCloneUrl ( "/srv/git/repo.git" ) ) . toBe ( "/srv/git/repo.git" ) ;
6666 for ( const gitlabProject of [
6767 "https://gitlab.com/acme/tools/src/branch/worker.git" ,
68- "https://gitlab.com/acme/tools/src/branch/worker" ,
69- "https://gitlab.example.test/acme/tools/src/branch/worker.git" ,
70- "https://gitlab.example.test/acme/tools/src/branch/worker" ,
7168 "https://scm.example.test/acme/tools/src/branch/worker.git" ,
7269 "https://scm.example.test/acme/tools/src/branch/worker" ,
7370 "https://scm.example.test/team/repo/src/branch/main/-/README.md" ,
74- "https://code.company.test/team/repo/src/branch/main/docs" ,
7571 "https://forgejo.example.test/a/b/src/branch/mount/team/repo.git" ,
7672 ] ) {
7773 expect ( normalizePastedCloneUrl ( gitlabProject ) ) . toBe ( gitlabProject ) ;
@@ -81,13 +77,11 @@ describe("add project shared logic", () => {
8177 it ( "clones the repository when given a page URL copied from the browser" , ( ) => {
8278 for ( const [ pageUrl , pageRoute , repository ] of [
8379 [ "https://github.com/pingdotgg/t3code/tree/main" , "/tree/" , "t3code" ] ,
84- [ "https://github.com/pingdotgg/t3code/blob/main/README.md" , "/blob/" , "t3code" ] ,
8580 [ "https://gitlab.com/gitlab-org/gitlab-runner/-/tree/main" , "/-/" , "gitlab-runner" ] ,
8681 [ "https://git.cafe/pingdotgg/t3code/tree/main" , "/tree/" , "t3code" ] ,
8782 [ "https://gitlab.example.test/g/p/-/blob/main/src/branch/x" , "/-/" , "p" ] ,
8883 [ "https://code.company.test/g/p/-/tree/main" , "/-/" , "p" ] ,
8984 [ "https://github.com/pingdotgg/t3code/tree/release.git" , "/tree/" , "t3code" ] ,
90- [ "https://gitlab.com/g/p/-/blob/main/template.git" , "/-/" , "p" ] ,
9185 ] as const ) {
9286 const cloneUrl = normalizePastedCloneUrl ( pageUrl ) ;
9387 expect ( cloneUrl ) . not . toContain ( pageRoute ) ;
0 commit comments