From 9865bd2c4cab88f140346f0c3baba13bedd0116c Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 29 Aug 2023 10:43:51 +0000 Subject: [PATCH 1/2] test --- __tests__/auth.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/__tests__/auth.test.ts b/__tests__/auth.test.ts index 50d0a6a..1bfa8e9 100644 --- a/__tests__/auth.test.ts +++ b/__tests__/auth.test.ts @@ -59,6 +59,7 @@ describe('auth', () => { const http: httpm.HttpClient = new httpm.HttpClient('http-client-tests', [ ph ]) + try { const res: httpm.HttpClientResponse = await http.get( 'http://postman-echo.com/get' ) @@ -68,5 +69,9 @@ describe('auth', () => { const auth: string = obj.headers.authorization expect(auth).toBe(`Bearer ${token}`) expect(obj.url).toBe('http://postman-echo.com/get') + } + finally { + http.dispose() + } }) }) From 72c9b82e75609768118675d635ac428f17e1dd50 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:19:06 +0000 Subject: [PATCH 2/2] revert --- __tests__/auth.test.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/__tests__/auth.test.ts b/__tests__/auth.test.ts index 1bfa8e9..50d0a6a 100644 --- a/__tests__/auth.test.ts +++ b/__tests__/auth.test.ts @@ -59,7 +59,6 @@ describe('auth', () => { const http: httpm.HttpClient = new httpm.HttpClient('http-client-tests', [ ph ]) - try { const res: httpm.HttpClientResponse = await http.get( 'http://postman-echo.com/get' ) @@ -69,9 +68,5 @@ describe('auth', () => { const auth: string = obj.headers.authorization expect(auth).toBe(`Bearer ${token}`) expect(obj.url).toBe('http://postman-echo.com/get') - } - finally { - http.dispose() - } }) })