tweaked unit test

This commit is contained in:
John Wesley Walker III 2024-10-18 19:01:18 +02:00 committed by GitHub
parent 12bd4a4f13
commit 0c1694f6f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ describe('isGhes', () => {
}); });
it('returns false when the GITHUB_SERVER_URL environment variable is not defined', async () => { 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(); expect(isGhes()).toBeFalsy();
}); });
@ -119,4 +119,3 @@ describe('isGhes', () => {
expect(isGhes()).toBeTruthy(); expect(isGhes()).toBeTruthy();
}); });
}); });