@@ -3,12 +3,12 @@ import getProjectContext from "../lib/get-project-context.js";
3
3
4
4
test ( "Parse project path with https URL" , ( t ) => {
5
5
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" )
7
7
. projectPath ,
8
8
"owner/repo"
9
9
) ;
10
10
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" )
12
12
. projectPath ,
13
13
"owner/repo"
14
14
) ;
@@ -39,7 +39,7 @@ test("Parse project path with context in repo URL", (t) => {
39
39
t . is (
40
40
getProjectContext (
41
41
{ env : { } } ,
42
- "https://gitlbab .com/context" ,
42
+ "https://gitlab .com/context" ,
43
43
"https://api.gitlab.com" ,
44
44
"https://gitlab.com/context/owner/repo.git"
45
45
) . projectPath ,
@@ -48,7 +48,7 @@ test("Parse project path with context in repo URL", (t) => {
48
48
t . is (
49
49
getProjectContext (
50
50
{ env : { } } ,
51
- "https://gitlbab .com/context" ,
51
+ "https://gitlab .com/context" ,
52
52
"https://api.gitlab.com" ,
53
53
"git+ssh://[email protected] /context/owner/repo.git"
54
54
) . projectPath ,
@@ -60,7 +60,7 @@ test("Parse project path with context not in repo URL", (t) => {
60
60
t . is (
61
61
getProjectContext (
62
62
{ env : { } } ,
63
- "https://gitlbab .com/context" ,
63
+ "https://gitlab .com/context" ,
64
64
"https://api.gitlab.com" ,
65
65
"https://gitlab.com/owner/repo.git"
66
66
) . projectPath ,
@@ -69,7 +69,7 @@ test("Parse project path with context not in repo URL", (t) => {
69
69
t . is (
70
70
getProjectContext (
71
71
{ env : { } } ,
72
- "https://gitlbab .com/context" ,
72
+ "https://gitlab .com/context" ,
73
73
"https://api.gitlab.com" ,
74
74
"git+ssh://[email protected] /owner/repo.git"
75
75
) . projectPath ,
@@ -81,7 +81,7 @@ test("Parse project path with organization and subgroup", (t) => {
81
81
t . is (
82
82
getProjectContext (
83
83
{ env : { } } ,
84
- "https://gitlbab .com/context" ,
84
+ "https://gitlab .com/context" ,
85
85
"https://api.gitlab.com" ,
86
86
"https://gitlab.com/orga/subgroup/owner/repo.git"
87
87
) . projectPath ,
@@ -90,7 +90,7 @@ test("Parse project path with organization and subgroup", (t) => {
90
90
t . is (
91
91
getProjectContext (
92
92
{ env : { } } ,
93
- "https://gitlbab .com/context" ,
93
+ "https://gitlab .com/context" ,
94
94
"https://api.gitlab.com" ,
95
95
"git+ssh://[email protected] /orga/subgroup/owner/repo.git"
96
96
) . projectPath ,
@@ -102,7 +102,7 @@ test("Get project path from GitLab CI", (t) => {
102
102
t . is (
103
103
getProjectContext (
104
104
{ envCi : { service : "gitlab" } , env : { CI_PROJECT_PATH : "other-owner/other-repo" } } ,
105
- "https://gitlbab .com" ,
105
+ "https://gitlab .com" ,
106
106
"https://api.gitlab.com" ,
107
107
"https://gitlab.com/owner/repo.git"
108
108
) . projectPath ,
@@ -114,7 +114,7 @@ test("Ignore CI_PROJECT_PATH if not on GitLab CI", (t) => {
114
114
t . is (
115
115
getProjectContext (
116
116
{ envCi : { service : "travis" } , env : { CI_PROJECT_PATH : "other-owner/other-repo" } } ,
117
- "https://gitlbab .com" ,
117
+ "https://gitlab .com" ,
118
118
"https://api.gitlab.com" ,
119
119
"https://gitlab.com/owner/repo.git"
120
120
) . projectPath ,
0 commit comments