mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-05 14:03:15 +08:00
updating allowed hosts to include ghe.com
This commit is contained in:
4
packages/cache/__tests__/cacheUtils.test.ts
vendored
4
packages/cache/__tests__/cacheUtils.test.ts
vendored
@@ -49,7 +49,7 @@ test('isGhes returns false for github.com', async () => {
|
||||
})
|
||||
|
||||
test('isGhes returns false for ghe.com', async () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://somedomain.ghe.com'
|
||||
process.env.GITHUB_SERVER_URL = 'https://github.ghe.com'
|
||||
expect(cacheUtils.isGhes()).toBe(false)
|
||||
})
|
||||
|
||||
@@ -59,6 +59,6 @@ test('isGhes returns true for enterprise URL', async () => {
|
||||
})
|
||||
|
||||
test('isGhes returns false for ghe.localhost', () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://my.domain.ghe.localhost'
|
||||
process.env.GITHUB_SERVER_URL = 'https://github.ghe.localhost'
|
||||
expect(cacheUtils.isGhes()).toBe(false)
|
||||
})
|
||||
Reference in New Issue
Block a user