@@ -3,12 +3,12 @@ import getProjectContext from "../lib/get-project-context.js";
33
44test ( "Parse project path with https URL" , ( t ) => {
55 t . is (
6- getProjectContext ( { env : { } } , "https://gitlbab .com" , "https://api.gitlab.com" , "https://gitlab.com/owner/repo.git" )
6+ getProjectContext ( { env : { } } , "https://gitlab .com" , "https://api.gitlab.com" , "https://gitlab.com/owner/repo.git" )
77 . projectPath ,
88 "owner/repo"
99 ) ;
1010 t . is (
11- getProjectContext ( { env : { } } , "https://gitlbab .com" , "https://api.gitlab.com" , "https://gitlab.com/owner/repo" )
11+ getProjectContext ( { env : { } } , "https://gitlab .com" , "https://api.gitlab.com" , "https://gitlab.com/owner/repo" )
1212 . projectPath ,
1313 "owner/repo"
1414 ) ;
@@ -39,7 +39,7 @@ test("Parse project path with context in repo URL", (t) => {
3939 t . is (
4040 getProjectContext (
4141 { env : { } } ,
42- "https://gitlbab .com/context" ,
42+ "https://gitlab .com/context" ,
4343 "https://api.gitlab.com" ,
4444 "https://gitlab.com/context/owner/repo.git"
4545 ) . projectPath ,
@@ -48,7 +48,7 @@ test("Parse project path with context in repo URL", (t) => {
4848 t . is (
4949 getProjectContext (
5050 { env : { } } ,
51- "https://gitlbab .com/context" ,
51+ "https://gitlab .com/context" ,
5252 "https://api.gitlab.com" ,
5353 "git+ssh://[email protected] /context/owner/repo.git" 5454 ) . projectPath ,
@@ -60,7 +60,7 @@ test("Parse project path with context not in repo URL", (t) => {
6060 t . is (
6161 getProjectContext (
6262 { env : { } } ,
63- "https://gitlbab .com/context" ,
63+ "https://gitlab .com/context" ,
6464 "https://api.gitlab.com" ,
6565 "https://gitlab.com/owner/repo.git"
6666 ) . projectPath ,
@@ -69,7 +69,7 @@ test("Parse project path with context not in repo URL", (t) => {
6969 t . is (
7070 getProjectContext (
7171 { env : { } } ,
72- "https://gitlbab .com/context" ,
72+ "https://gitlab .com/context" ,
7373 "https://api.gitlab.com" ,
7474 "git+ssh://[email protected] /owner/repo.git" 7575 ) . projectPath ,
@@ -81,7 +81,7 @@ test("Parse project path with organization and subgroup", (t) => {
8181 t . is (
8282 getProjectContext (
8383 { env : { } } ,
84- "https://gitlbab .com/context" ,
84+ "https://gitlab .com/context" ,
8585 "https://api.gitlab.com" ,
8686 "https://gitlab.com/orga/subgroup/owner/repo.git"
8787 ) . projectPath ,
@@ -90,7 +90,7 @@ test("Parse project path with organization and subgroup", (t) => {
9090 t . is (
9191 getProjectContext (
9292 { env : { } } ,
93- "https://gitlbab .com/context" ,
93+ "https://gitlab .com/context" ,
9494 "https://api.gitlab.com" ,
9595 "git+ssh://[email protected] /orga/subgroup/owner/repo.git" 9696 ) . projectPath ,
@@ -102,7 +102,7 @@ test("Get project path from GitLab CI", (t) => {
102102 t . is (
103103 getProjectContext (
104104 { envCi : { service : "gitlab" } , env : { CI_PROJECT_PATH : "other-owner/other-repo" } } ,
105- "https://gitlbab .com" ,
105+ "https://gitlab .com" ,
106106 "https://api.gitlab.com" ,
107107 "https://gitlab.com/owner/repo.git"
108108 ) . projectPath ,
@@ -114,7 +114,7 @@ test("Ignore CI_PROJECT_PATH if not on GitLab CI", (t) => {
114114 t . is (
115115 getProjectContext (
116116 { envCi : { service : "travis" } , env : { CI_PROJECT_PATH : "other-owner/other-repo" } } ,
117- "https://gitlbab .com" ,
117+ "https://gitlab .com" ,
118118 "https://api.gitlab.com" ,
119119 "https://gitlab.com/owner/repo.git"
120120 ) . projectPath ,
0 commit comments