@@ -461,14 +461,16 @@ function compareCommandStartedEvents(
461
461
if ( expected ! . commandName ) {
462
462
expect (
463
463
expected ! . commandName ,
464
- `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${ actual . commandName
464
+ `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${
465
+ actual . commandName
465
466
} `
466
467
) . to . equal ( actual . commandName ) ;
467
468
}
468
469
if ( expected ! . databaseName ) {
469
470
expect (
470
471
expected ! . databaseName ,
471
- `expected ${ prefix } .databaseName to equal ${ expected ! . databaseName } but received ${ actual . databaseName
472
+ `expected ${ prefix } .databaseName to equal ${ expected ! . databaseName } but received ${
473
+ actual . databaseName
472
474
} `
473
475
) . to . equal ( actual . databaseName ) ;
474
476
}
@@ -486,7 +488,8 @@ function compareCommandSucceededEvents(
486
488
if ( expected ! . commandName ) {
487
489
expect (
488
490
expected ! . commandName ,
489
- `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${ actual . commandName
491
+ `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${
492
+ actual . commandName
490
493
} `
491
494
) . to . equal ( actual . commandName ) ;
492
495
}
@@ -501,7 +504,8 @@ function compareCommandFailedEvents(
501
504
if ( expected ! . commandName ) {
502
505
expect (
503
506
expected ! . commandName ,
504
- `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${ actual . commandName
507
+ `expected ${ prefix } .commandName to equal ${ expected ! . commandName } but received ${
508
+ actual . commandName
505
509
} `
506
510
) . to . equal ( actual . commandName ) ;
507
511
}
@@ -775,7 +779,7 @@ export function expectErrorCheck(
775
779
// TODO(NODE-6281): do not throw MongoServerErrors from bulk write if the error is a client-side error
776
780
expect ( error . errorResponse ) . not . to . be . instanceOf ( MongoServerError ) ;
777
781
} else if ( inspect ( error , { depth : Infinity } ) . includes ( `StateMachine.markCommand` ) ) {
778
- // mongocryptd marking commands results in MongoServerErrors because we communicate with a mongocryptd using a
782
+ // mongocryptd marking commands results in MongoServerErrors because we communicate with a mongocryptd using a
779
783
// MongoClient. These are technically considered client errors though.
780
784
expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
781
785
} else {
0 commit comments