mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 10:04:52 +00:00
Make certain the env var isn't present during testing
This commit is contained in:
@@ -35,6 +35,7 @@ describe('apiClient', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('defaults to GitHub API if GITHUB_API_URL environment variable is not set', async () => {
|
it('defaults to GitHub API if GITHUB_API_URL environment variable is not set', async () => {
|
||||||
|
delete process.env.GITHUB_API_URL
|
||||||
const result = apiClient.getApiBaseUrl()
|
const result = apiClient.getApiBaseUrl()
|
||||||
expect(result).toEqual('https://api.github.com')
|
expect(result).toEqual('https://api.github.com')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user