updating allowed hosts to include ghe.com

This commit is contained in:
eggyhead
2024-01-30 22:22:49 +00:00
parent 1a1d5e3792
commit 79886daf63
4 changed files with 20 additions and 12 deletions

View File

@@ -13,12 +13,12 @@ describe('isGhes', () => {
})
it('should return false when the request domain ends with ghe.com', () => {
process.env.GITHUB_SERVER_URL = 'https://my.domain.ghe.com'
process.env.GITHUB_SERVER_URL = 'https://github.ghe.com'
expect(config.isGhes()).toBe(false)
})
it('should return false when the request domain ends with ghe.localhost', () => {
process.env.GITHUB_SERVER_URL = 'https://my.domain.ghe.localhost'
process.env.GITHUB_SERVER_URL = 'https://github.ghe.localhost'
expect(config.isGhes()).toBe(false)
})