reverting updated ghes logic for cache

This commit is contained in:
eggyhead
2024-01-31 01:57:26 +00:00
parent 79886daf63
commit fe8c762d61
2 changed files with 24 additions and 50 deletions

View File

@@ -48,17 +48,7 @@ test('isGhes returns false for github.com', async () => {
expect(cacheUtils.isGhes()).toBe(false)
})
test('isGhes returns false for ghe.com', async () => {
process.env.GITHUB_SERVER_URL = 'https://github.ghe.com'
expect(cacheUtils.isGhes()).toBe(false)
})
test('isGhes returns true for enterprise URL', async () => {
process.env.GITHUB_SERVER_URL = 'https://my-enterprise.github.com'
expect(cacheUtils.isGhes()).toBe(true)
})
test('isGhes returns false for ghe.localhost', () => {
process.env.GITHUB_SERVER_URL = 'https://github.ghe.localhost'
expect(cacheUtils.isGhes()).toBe(false)
})