Skip to content

Commit

Permalink
npm run format http-client files
Browse files Browse the repository at this point in the history
  • Loading branch information
brcrista committed Apr 26, 2022
1 parent 92a77e9 commit ec32a39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/http-client/__tests__/basics.test.ts
Expand Up @@ -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', [], {
Expand Down Expand Up @@ -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 () => {
Expand All @@ -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 () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/http-client/src/auth.ts
Expand Up @@ -25,7 +25,7 @@ export class BasicCredentialHandler implements ifm.IRequestHandler {
requestInfo: ifm.IRequestInfo,
objs: any
): Promise<ifm.IHttpClientResponse> {
throw new Error("not implemented")
throw new Error('not implemented')
}
}

Expand All @@ -52,7 +52,7 @@ export class BearerCredentialHandler implements ifm.IRequestHandler {
requestInfo: ifm.IRequestInfo,
objs: any
): Promise<ifm.IHttpClientResponse> {
throw new Error("not implemented")
throw new Error('not implemented')
}
}

Expand Down Expand Up @@ -81,6 +81,6 @@ export class PersonalAccessTokenCredentialHandler
requestInfo: ifm.IRequestInfo,
objs: any
): Promise<ifm.IHttpClientResponse> {
throw new Error("not implemented")
throw new Error('not implemented')
}
}
2 changes: 1 addition & 1 deletion packages/http-client/src/proxy.ts
Expand Up @@ -16,7 +16,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
if (proxyVar) {
return new URL(proxyVar)
} else {
return undefined
return undefined
}
}

Expand Down

0 comments on commit ec32a39

Please sign in to comment.