Skip to content

Commit

Permalink
[AppConfig, EventGrid, KeyVault, Tables] Run format (Azure#14326)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a authored Mar 17, 2021
1 parent 326c8d2 commit c2c0ab0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("tracingHelpers", () => {
{
tracingOptions: {}
},
async (_newOptions, _span) => { },
async (_newOptions, _span) => {},
fakeCreateSpan
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy,
PipelinePolicy
} from "@azure/core-rest-pipeline";

export const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";
Expand Down Expand Up @@ -65,6 +65,6 @@ export function cloudEventDistributedTracingEnricherPolicy(): PipelinePolicy {
}

return next(request);
},
}
};
}
4 changes: 2 additions & 2 deletions sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy,
PipelinePolicy
} from "@azure/core-rest-pipeline";

import { isKeyCredentialLike } from "./util";
Expand Down Expand Up @@ -43,6 +43,6 @@ export function eventGridCredentialPolicy(
}

return next(request);
},
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
PipelineRequest,
PipelineResponse,
createPipelineRequest,
SendRequest,
SendRequest
} from "@azure/core-rest-pipeline";

const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";

describe("CloudEventDistributedTracingEnricherPolicy", function () {
describe("CloudEventDistributedTracingEnricherPolicy", function() {
const emptyResponse: SendRequest = (request: PipelineRequest): Promise<PipelineResponse> => {
return Promise.resolve({ request: request, status: 200, headers: request.headers });
};
Expand Down Expand Up @@ -69,9 +69,9 @@ describe("CloudEventDistributedTracingEnricherPolicy", function () {
request.body = JSON.stringify([
{
traceparent,
tracestate,
tracestate
},
{},
{}
]);

const resp = await policy.sendRequest(request, emptyResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ describe("Challenge based authentication tests", () => {
let testClient: TestClient;
let recorder: Recorder;

beforeEach(async function () {
beforeEach(async function() {
const authentication = await authenticate(this);
secretSuffix = authentication.secretSuffix;
client = authentication.client;
testClient = authentication.testClient;
recorder = authentication.recorder;
});

afterEach(async function () {
afterEach(async function() {
await recorder.stop();
});

// The tests follow

it("Authentication should work for parallel requests", async function () {
it("Authentication should work for parallel requests", async function() {
const secretName = testClient.formatName(
`${secretPrefix}-${this!.test!.title}-${secretSuffix}`
);
Expand Down Expand Up @@ -73,7 +73,7 @@ describe("Challenge based authentication tests", () => {
sandbox.restore();
});

it("Once authenticated, new requests should not authenticate again", async function () {
it("Once authenticated, new requests should not authenticate again", async function() {
// Our goal is to intercept how our pipelines are storing the challenge.
// The first network call should indeed set the challenge in memory.
// Subsequent network calls should not set new challenges.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { PipelineResponse, PipelineRequest, SendRequest, PipelinePolicy } from "@azure/core-rest-pipeline";
import {
PipelineResponse,
PipelineRequest,
SendRequest,
PipelinePolicy
} from "@azure/core-rest-pipeline";
import { TablesSharedKeyCredentialLike } from "./TablesSharedKeyCredential";
import { HeaderConstants } from "./utils/constants";
import { URL } from "./utils/url";
Expand Down

0 comments on commit c2c0ab0

Please sign in to comment.