File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/shell-bson-parser/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ describe('@mongodb-js/shell-bson-parser', function () {
513
513
new ( Date as any ) ( ...args ) . getUTCSeconds ( )
514
514
) ;
515
515
expect ( actual . getYear ) . to . equal (
516
- ( new ( Date as any ) ( ...args ) as any ) . getYear ( )
516
+ new ( Date as any ) ( ...args ) . getYear ( )
517
517
) ; // getYear is deprecated
518
518
expect ( actual . setDate ) . to . be . approximately (
519
519
new ( Date as any ) ( ...args ) . setDate ( 24 ) ,
@@ -576,7 +576,7 @@ describe('@mongodb-js/shell-bson-parser', function () {
576
576
allowedMillisecondDelta
577
577
) ;
578
578
expect ( actual . setYear ) . to . be . approximately (
579
- ( new ( Date as any ) ( ...args ) as any ) . setYear ( 96 ) ,
579
+ new ( Date as any ) ( ...args ) . setYear ( 96 ) ,
580
580
allowedMillisecondDelta
581
581
) ; // setYear is deprecated
582
582
expect ( actual . valueOf ) . to . be . approximately (
You can’t perform that action at this time.
0 commit comments