From 0c1694f6f72bafe4ddb98172ecd5dbb5bcb39470 Mon Sep 17 00:00:00 2001 From: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:01:18 +0200 Subject: [PATCH] tweaked unit test --- __tests__/util.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/__tests__/util.test.ts b/__tests__/util.test.ts index d60c051c..db5cd10a 100644 --- a/__tests__/util.test.ts +++ b/__tests__/util.test.ts @@ -95,7 +95,7 @@ describe('isGhes', () => { }); it('returns false when the GITHUB_SERVER_URL environment variable is not defined', async () => { - process.env['GITHUB_SERVER_URL'] = undefined; + delete process.env['GITHUB_SERVER_URL']; expect(isGhes()).toBeFalsy(); }); @@ -119,4 +119,3 @@ describe('isGhes', () => { expect(isGhes()).toBeTruthy(); }); }); -