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 () {
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 (
You can’t perform that action at this time.
0 commit comments