This commit is contained in:
Tatyana Kostromskaya committed 2023-08-29 10:43:51 +00:00
1 parent cab9d56ad0
commit 9865bd2c4c
1 file changed
+5
+5
View File
@@ -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()
}
})
})