Commit 8a3c02a 1 parent 9afca84 commit 8a3c02a Copy full SHA for 8a3c02a
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,21 @@ func TestIsEnterprise(t *testing.T) {
237
237
host : "github.com" ,
238
238
wantOut : false ,
239
239
},
240
+ {
241
+ name : "github API" ,
242
+ host : "api.github.com" ,
243
+ wantOut : false ,
244
+ },
240
245
{
241
246
name : "localhost" ,
242
247
host : "github.localhost" ,
243
248
wantOut : false ,
244
249
},
250
+ {
251
+ name : "localhost API" ,
252
+ host : "api.github.localhost" ,
253
+ wantOut : false ,
254
+ },
245
255
{
246
256
name : "enterprise" ,
247
257
host : "mygithub.com" ,
@@ -252,6 +262,11 @@ func TestIsEnterprise(t *testing.T) {
252
262
host : "tenant.ghe.com" ,
253
263
wantOut : false ,
254
264
},
265
+ {
266
+ name : "tenant API" ,
267
+ host : "api.tenant.ghe.com" ,
268
+ wantOut : false ,
269
+ },
255
270
}
256
271
257
272
for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments