From ec32a3998983c85d7dede67119d8cb5a11a56662 Mon Sep 17 00:00:00 2001 From: Brian Cristante <33549821+brcrista@users.noreply.github.com> Date: Tue, 26 Apr 2022 09:43:24 -0400 Subject: [PATCH] npm run format http-client files --- packages/http-client/__tests__/basics.test.ts | 4 +--- packages/http-client/src/auth.ts | 6 +++--- packages/http-client/src/proxy.ts | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/http-client/__tests__/basics.test.ts b/packages/http-client/__tests__/basics.test.ts index ed03828287..a3bf5e779c 100644 --- a/packages/http-client/__tests__/basics.test.ts +++ b/packages/http-client/__tests__/basics.test.ts @@ -68,7 +68,7 @@ describe('basics', () => { let body: string = await res.readBody() let obj: any = JSON.parse(body) expect(obj.url).toBe('https://httpbin.org/get') - }) + }) it('does basic http get request with default headers', async () => { let http: httpm.HttpClient = new httpm.HttpClient('http-client-tests', [], { @@ -189,7 +189,6 @@ describe('basics', () => { expect(obj.headers['Authorization']).toBeUndefined() expect(obj.headers['authorization']).toBeUndefined() expect(obj.url).toBe('https://www.httpbin.org/get') - }) it('does not pass Auth with diff hostname redirects', async () => { @@ -211,7 +210,6 @@ describe('basics', () => { expect(obj.headers['Authorization']).toBeUndefined() expect(obj.headers['authorization']).toBeUndefined() expect(obj.url).toBe('https://www.httpbin.org/get') - }) it('does basic head request', async () => { diff --git a/packages/http-client/src/auth.ts b/packages/http-client/src/auth.ts index ce7f23b74d..9e113b4cc3 100644 --- a/packages/http-client/src/auth.ts +++ b/packages/http-client/src/auth.ts @@ -25,7 +25,7 @@ export class BasicCredentialHandler implements ifm.IRequestHandler { requestInfo: ifm.IRequestInfo, objs: any ): Promise { - throw new Error("not implemented") + throw new Error('not implemented') } } @@ -52,7 +52,7 @@ export class BearerCredentialHandler implements ifm.IRequestHandler { requestInfo: ifm.IRequestInfo, objs: any ): Promise { - throw new Error("not implemented") + throw new Error('not implemented') } } @@ -81,6 +81,6 @@ export class PersonalAccessTokenCredentialHandler requestInfo: ifm.IRequestInfo, objs: any ): Promise { - throw new Error("not implemented") + throw new Error('not implemented') } } diff --git a/packages/http-client/src/proxy.ts b/packages/http-client/src/proxy.ts index a7a9e6ed1a..53e206ad88 100644 --- a/packages/http-client/src/proxy.ts +++ b/packages/http-client/src/proxy.ts @@ -16,7 +16,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined { if (proxyVar) { return new URL(proxyVar) } else { - return undefined + return undefined } }