Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
timovv committed Nov 7, 2024
1 parent d58a2b5 commit 7b2581f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 10 additions & 1 deletion sdk/core/ts-http-runtime/test/node/checkEnvironment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
11 changes: 6 additions & 5 deletions sdk/core/ts-http-runtime/test/node/proxyPolicy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions sdk/core/ts-http-runtime/test/pipeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 7b2581f

Please sign in to comment.