Skip to content

Commit 85ac9d2

Browse files
authored
[engsys] fix format Feb 2023 (Azure#25009)
- files were formatted in PR Azure#24378 with downgraded version prettier v2.8.1 changes in this PR are the result of `rush format` in the repo.
1 parent ee7f5f6 commit 85ac9d2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

sdk/core/core-http/test/credentialTests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ describe("Basic Authentication credentials", () => {
8787
it("should fail with options.inHeader and options.inQuery set to null or undefined", function (done) {
8888
(function () {
8989
new ApiKeyCredentials({ inHeader: undefined, inQuery: undefined } as any);
90-
}.should.throw());
90+
}).should.throw();
9191
done();
9292
});
9393

9494
it("should fail without options", function (done) {
9595
(function () {
9696
new (ApiKeyCredentials as any)();
97-
}.should.throw());
97+
}).should.throw();
9898
done();
9999
});
100100

101101
it("should fail with empty options", function (done) {
102102
(function () {
103103
new ApiKeyCredentials({});
104-
}.should.throw());
104+
}).should.throw();
105105
done();
106106
});
107107
});

sdk/core/core-http/test/serializationTests.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ describe("msrest", function () {
774774

775775
(function () {
776776
Serializer.serialize(mapper, { length: undefined }, "testobj");
777-
}.should.throw("testobj.length cannot be undefined."));
777+
}).should.throw("testobj.length cannot be undefined.");
778778
});
779779

780780
it("should not allow null when required: true and nullable: false", function () {
@@ -799,7 +799,7 @@ describe("msrest", function () {
799799

800800
(function () {
801801
Serializer.serialize(mapper, { length: undefined }, "testobj");
802-
}.should.throw("testobj.length cannot be null or undefined."));
802+
}).should.throw("testobj.length cannot be null or undefined.");
803803
});
804804

805805
it("should not allow undefined when required: true and nullable: false", function () {
@@ -824,7 +824,7 @@ describe("msrest", function () {
824824

825825
(function () {
826826
Serializer.serialize(mapper, { length: undefined }, "testobj");
827-
}.should.throw("testobj.length cannot be null or undefined."));
827+
}).should.throw("testobj.length cannot be null or undefined.");
828828
});
829829

830830
it("should not allow null when required: true and nullable is undefined", function () {
@@ -837,7 +837,7 @@ describe("msrest", function () {
837837
};
838838
(function () {
839839
Serializer.serialize(mapper, undefined, "testobj");
840-
}.should.throw("testobj cannot be null or undefined."));
840+
}).should.throw("testobj cannot be null or undefined.");
841841
});
842842

843843
it("should not allow undefined when required: true and nullable is undefined", function () {
@@ -850,7 +850,7 @@ describe("msrest", function () {
850850
};
851851
(function () {
852852
Serializer.serialize(mapper, undefined, "testobj");
853-
}.should.throw("testobj cannot be null or undefined."));
853+
}).should.throw("testobj cannot be null or undefined.");
854854
});
855855

856856
it("should allow null when required: false and nullable: true", function () {
@@ -879,7 +879,7 @@ describe("msrest", function () {
879879
// tslint:disable-next-line
880880
(function () {
881881
Serializer.serialize(mapper, null, "testobj");
882-
}.should.throw("testobj cannot be null."));
882+
}).should.throw("testobj cannot be null.");
883883
});
884884

885885
it("should allow null when required: false and nullable is undefined", function () {

sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ testWithServiceTypes((serviceVersion) => {
4444
"EventHubConsumerClient",
4545
"EventHubProducerClient",
4646
] as const;
47-
const clientMap = new Map<typeof clientTypes[number], ClientCommonMethods>();
47+
const clientMap = new Map<(typeof clientTypes)[number], ClientCommonMethods>();
4848

4949
const service = {
5050
connectionString: env[EnvVarKeys.EVENTHUB_CONNECTION_STRING],

0 commit comments

Comments
 (0)