Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen committed Jan 9, 2023
1 parent f10e652 commit 6ea0e03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions sdk/core/core-http/test/credentialTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,21 @@ describe("Basic Authentication credentials", () => {
it("should fail with options.inHeader and options.inQuery set to null or undefined", function (done) {
(function () {
new ApiKeyCredentials({ inHeader: undefined, inQuery: undefined } as any);
}.should.throw());
}).should.throw();
done();
});

it("should fail without options", function (done) {
(function () {
new (ApiKeyCredentials as any)();
}.should.throw());
}).should.throw();
done();
});

it("should fail with empty options", function (done) {
(function () {
new ApiKeyCredentials({});
}.should.throw());
}).should.throw();
done();
});
});
Expand Down
12 changes: 6 additions & 6 deletions sdk/core/core-http/test/serializationTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ describe("msrest", function () {

(function () {
Serializer.serialize(mapper, { length: undefined }, "testobj");
}.should.throw("testobj.length cannot be undefined."));
}).should.throw("testobj.length cannot be undefined.");
});

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

(function () {
Serializer.serialize(mapper, { length: undefined }, "testobj");
}.should.throw("testobj.length cannot be null or undefined."));
}).should.throw("testobj.length cannot be null or undefined.");
});

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

(function () {
Serializer.serialize(mapper, { length: undefined }, "testobj");
}.should.throw("testobj.length cannot be null or undefined."));
}).should.throw("testobj.length cannot be null or undefined.");
});

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

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

it("should allow null when required: false and nullable: true", function () {
Expand Down Expand Up @@ -879,7 +879,7 @@ describe("msrest", function () {
// tslint:disable-next-line
(function () {
Serializer.serialize(mapper, null, "testobj");
}.should.throw("testobj cannot be null."));
}).should.throw("testobj cannot be null.");
});

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

0 comments on commit 6ea0e03

Please sign in to comment.