mirror of
https://github.com/actions/configure-pages.git
synced 2026-02-09 03:45:14 +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 () => {
|
||||
delete process.env.GITHUB_API_URL
|
||||
const result = apiClient.getApiBaseUrl()
|
||||
expect(result).toEqual('https://api.github.com')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user