From b619d6bb2a9dbca696573faee42db5285e42e0b0 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 5 Aug 2022 12:59:28 -0500 Subject: [PATCH] Make certain the env var isn't present during testing --- src/api-client.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api-client.test.js b/src/api-client.test.js index 05588f5..363a8b9 100644 --- a/src/api-client.test.js +++ b/src/api-client.test.js @@ -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') })