We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9afca84 commit 8a3c02aCopy full SHA for 8a3c02a
pkg/auth/auth_test.go
@@ -237,11 +237,21 @@ func TestIsEnterprise(t *testing.T) {
237
host: "github.com",
238
wantOut: false,
239
},
240
+ {
241
+ name: "github API",
242
+ host: "api.github.com",
243
+ wantOut: false,
244
+ },
245
{
246
name: "localhost",
247
host: "github.localhost",
248
249
250
251
+ name: "localhost API",
252
+ host: "api.github.localhost",
253
254
255
256
name: "enterprise",
257
host: "mygithub.com",
@@ -252,6 +262,11 @@ func TestIsEnterprise(t *testing.T) {
262
host: "tenant.ghe.com",
263
264
265
266
+ name: "tenant API",
267
+ host: "api.tenant.ghe.com",
268
269
270
}
271
272
for _, tt := range tests {
0 commit comments