Skip to content

Commit 1944e88

Browse files
committed
remove unnecessary assertions
1 parent 46da80b commit 1944e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shell-bson-parser/src/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ describe('@mongodb-js/shell-bson-parser', function () {
513513
new (Date as any)(...args).getUTCSeconds()
514514
);
515515
expect(actual.getYear).to.equal(
516-
(new (Date as any)(...args) as any).getYear()
516+
new (Date as any)(...args).getYear()
517517
); // getYear is deprecated
518518
expect(actual.setDate).to.be.approximately(
519519
new (Date as any)(...args).setDate(24),
@@ -576,7 +576,7 @@ describe('@mongodb-js/shell-bson-parser', function () {
576576
allowedMillisecondDelta
577577
);
578578
expect(actual.setYear).to.be.approximately(
579-
(new (Date as any)(...args) as any).setYear(96),
579+
new (Date as any)(...args).setYear(96),
580580
allowedMillisecondDelta
581581
); // setYear is deprecated
582582
expect(actual.valueOf).to.be.approximately(

0 commit comments

Comments
 (0)