From 041723abcc261fc3c9a738f026fe7e5fde461962 Mon Sep 17 00:00:00 2001 From: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:56:31 +0000 Subject: [PATCH] updated unit tests --- __test__/url-helper.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/__test__/url-helper.test.ts b/__test__/url-helper.test.ts index 53b6671..0c2c8d1 100644 --- a/__test__/url-helper.test.ts +++ b/__test__/url-helper.test.ts @@ -4,10 +4,9 @@ describe('isGhes tests', () => { it('basics', async () => { expect(urlHelper.isGhes()).toBeFalsy() expect(urlHelper.isGhes('https://github.com')).toBeFalsy() - //expect(urlHelper.isGhes('https://api.github.com')).toBeFalsy() expect(urlHelper.isGhes('https://contoso.ghe.com')).toBeFalsy() expect(urlHelper.isGhes('https://test.github.localhost')).toBeFalsy() - expect(urlHelper.isGhes('https://src.onpremise.customer.com')).toBeTruthy() + expect(urlHelper.isGhes('https://src.onpremise.fabrikam.com')).toBeTruthy() }) }) @@ -27,7 +26,7 @@ describe('getServerApiUrl tests', () => { 'https://api.fabrikam.ghe.com' ) expect( - urlHelper.getServerApiUrl('https://src.onpremise.customer.com') - ).toBe('https://src.onpremise.customer.com/api/v3') + urlHelper.getServerApiUrl('https://src.onpremise.fabrikam.com') + ).toBe('https://src.onpremise.fabrikam.com/api/v3') }) })