From 30289d37f75bd18b8c965a6c70eb26227af249d2 Mon Sep 17 00:00:00 2001 From: Thomas Boop Date: Thu, 15 Aug 2024 16:35:15 -0400 Subject: [PATCH] fix tests --- packages/http-client/__tests__/basics.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/http-client/__tests__/basics.test.ts b/packages/http-client/__tests__/basics.test.ts index 20377a17..2e06404c 100644 --- a/packages/http-client/__tests__/basics.test.ts +++ b/packages/http-client/__tests__/basics.test.ts @@ -192,7 +192,7 @@ describe('basics', () => { } const res: httpm.HttpClientResponse = await _http.get( `http://postman-echo.com/redirect-to?url=${encodeURIComponent( - 'https://www.postman-echo.com/get' + 'http://www.postman-echo.com/get' )}`, headers ) @@ -204,7 +204,7 @@ describe('basics', () => { expect(obj.headers[httpm.Headers.Accept]).toBe('application/json') expect(obj.headers['Authorization']).toBeUndefined() expect(obj.headers['authorization']).toBeUndefined() - expect(obj.url).toBe('https://www.postman-echo.com/get') + expect(obj.url).toBe('http://www.postman-echo.com/get') }) it('does not pass Auth with diff hostname redirects', async () => { @@ -214,7 +214,7 @@ describe('basics', () => { } const res: httpm.HttpClientResponse = await _http.get( `http://postman-echo.com/redirect-to?url=${encodeURIComponent( - 'https://www.postman-echo.com/get' + 'http://www.postman-echo.com/get' )}`, headers )