From 7b2581f31664b3eb6256e0ea8b8217dd94a7a0eb Mon Sep 17 00:00:00 2001 From: Timo van Veenendaal Date: Thu, 7 Nov 2024 09:20:29 -0800 Subject: [PATCH] format --- .../test/bearerTokenAuthenticationPolicy.spec.ts | 13 +++---------- ...bearerTokenAuthenticationPolicyChallenge.spec.ts | 7 ++----- .../test/node/checkEnvironment.spec.ts | 11 ++++++++++- .../ts-http-runtime/test/node/proxyPolicy.spec.ts | 11 ++++++----- sdk/core/ts-http-runtime/test/pipeline.spec.ts | 5 +---- 5 files changed, 22 insertions(+), 25 deletions(-) diff --git a/sdk/core/ts-http-runtime/test/bearerTokenAuthenticationPolicy.spec.ts b/sdk/core/ts-http-runtime/test/bearerTokenAuthenticationPolicy.spec.ts index 44c557784c4a..b3298f8538a5 100644 --- a/sdk/core/ts-http-runtime/test/bearerTokenAuthenticationPolicy.spec.ts +++ b/sdk/core/ts-http-runtime/test/bearerTokenAuthenticationPolicy.spec.ts @@ -3,17 +3,10 @@ import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; import type { AccessToken, TokenCredential } from "../src/auth/tokenCredential.js"; -import type { - PipelinePolicy, - PipelineResponse, - SendRequest, -} from "../src/index.js"; -import { - createHttpHeaders, - createPipelineRequest, -} from "../src/index.js"; +import type { PipelinePolicy, PipelineResponse, SendRequest } from "../src/index.js"; +import { createHttpHeaders, createPipelineRequest } from "../src/index.js"; import { DEFAULT_CYCLER_OPTIONS } from "../src/util/tokenCycler.js"; -import type { AuthorizeRequestOnChallengeOptions} from "../src/policies/bearerTokenAuthenticationPolicy.js"; +import type { AuthorizeRequestOnChallengeOptions } from "../src/policies/bearerTokenAuthenticationPolicy.js"; import { bearerTokenAuthenticationPolicy } from "../src/policies/bearerTokenAuthenticationPolicy.js"; const { refreshWindowInMs: defaultRefreshWindow } = DEFAULT_CYCLER_OPTIONS; diff --git a/sdk/core/ts-http-runtime/test/node/bearerTokenAuthenticationPolicyChallenge.spec.ts b/sdk/core/ts-http-runtime/test/node/bearerTokenAuthenticationPolicyChallenge.spec.ts index 71572a5b00b5..520f5688fc0a 100644 --- a/sdk/core/ts-http-runtime/test/node/bearerTokenAuthenticationPolicyChallenge.spec.ts +++ b/sdk/core/ts-http-runtime/test/node/bearerTokenAuthenticationPolicyChallenge.spec.ts @@ -7,15 +7,12 @@ import type { GetTokenOptions, TokenCredential, } from "../../src/auth/tokenCredential.js"; -import type { - HttpClient, - PipelineResponse, -} from "../../src/index.js"; +import type { HttpClient, PipelineResponse } from "../../src/index.js"; import { TextDecoder } from "node:util"; import { createPipelineRequest } from "../../src/pipelineRequest.js"; import { createHttpHeaders } from "../../src/httpHeaders.js"; import { createEmptyPipeline } from "../../src/pipeline.js"; -import type { AuthorizeRequestOnChallengeOptions} from "../../src/policies/bearerTokenAuthenticationPolicy.js"; +import type { AuthorizeRequestOnChallengeOptions } from "../../src/policies/bearerTokenAuthenticationPolicy.js"; import { bearerTokenAuthenticationPolicy } from "../../src/policies/bearerTokenAuthenticationPolicy.js"; export interface TestChallenge { diff --git a/sdk/core/ts-http-runtime/test/node/checkEnvironment.spec.ts b/sdk/core/ts-http-runtime/test/node/checkEnvironment.spec.ts index 72a1b5ebac54..faa3d7416af2 100644 --- a/sdk/core/ts-http-runtime/test/node/checkEnvironment.spec.ts +++ b/sdk/core/ts-http-runtime/test/node/checkEnvironment.spec.ts @@ -2,7 +2,16 @@ // Licensed under the MIT License. import { describe, it, assert } from "vitest"; -import { isBrowser, isBun, isDeno, isNode, isNodeLike, isNodeRuntime, isReactNative, isWebWorker } from "../../src/util/checkEnvironment.js"; +import { + isBrowser, + isBun, + isDeno, + isNode, + isNodeLike, + isNodeRuntime, + isReactNative, + isWebWorker, +} from "../../src/util/checkEnvironment.js"; describe("checkEnvironment (node)", function () { describe("isBun (node)", function () { diff --git a/sdk/core/ts-http-runtime/test/node/proxyPolicy.spec.ts b/sdk/core/ts-http-runtime/test/node/proxyPolicy.spec.ts index ce12d3ee82db..bb42911cb435 100644 --- a/sdk/core/ts-http-runtime/test/node/proxyPolicy.spec.ts +++ b/sdk/core/ts-http-runtime/test/node/proxyPolicy.spec.ts @@ -4,12 +4,13 @@ import * as process from "node:process"; import { describe, it, assert, vi, afterEach } from "vitest"; import type { Agent, PipelineRequest } from "../../src/index.js"; +import { type ProxySettings, type SendRequest, createPipelineRequest } from "../../src/index.js"; import { - type ProxySettings, - type SendRequest, - createPipelineRequest -} from "../../src/index.js"; -import { getDefaultProxySettings, globalNoProxyList, loadNoProxy, proxyPolicy } from "../../src/policies/proxyPolicy.js"; + getDefaultProxySettings, + globalNoProxyList, + loadNoProxy, + proxyPolicy, +} from "../../src/policies/proxyPolicy.js"; interface ProxyAgent extends Agent { proxy: URL; diff --git a/sdk/core/ts-http-runtime/test/pipeline.spec.ts b/sdk/core/ts-http-runtime/test/pipeline.spec.ts index 7655a82795e2..93225e7594ec 100644 --- a/sdk/core/ts-http-runtime/test/pipeline.spec.ts +++ b/sdk/core/ts-http-runtime/test/pipeline.spec.ts @@ -3,10 +3,7 @@ import { describe, it, assert } from "vitest"; import type { HttpClient, PipelinePolicy } from "../src/index.js"; -import { - createHttpHeaders, - createPipelineRequest, -} from "../src/index.js"; +import { createHttpHeaders, createPipelineRequest } from "../src/index.js"; import { createEmptyPipeline } from "../src/pipeline.js"; import { createPipelineFromOptions } from "../src/createPipelineFromOptions.js";