@@ -461,14 +461,16 @@ function compareCommandStartedEvents(
461461 if ( expected ! . commandName ) {
462462 expect (
463463 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
465466 } `
466467 ) . to . equal ( actual . commandName ) ;
467468 }
468469 if ( expected ! . databaseName ) {
469470 expect (
470471 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
472474 } `
473475 ) . to . equal ( actual . databaseName ) ;
474476 }
@@ -486,7 +488,8 @@ function compareCommandSucceededEvents(
486488 if ( expected ! . commandName ) {
487489 expect (
488490 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
490493 } `
491494 ) . to . equal ( actual . commandName ) ;
492495 }
@@ -501,7 +504,8 @@ function compareCommandFailedEvents(
501504 if ( expected ! . commandName ) {
502505 expect (
503506 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
505509 } `
506510 ) . to . equal ( actual . commandName ) ;
507511 }
@@ -775,7 +779,7 @@ export function expectErrorCheck(
775779 // TODO(NODE-6281): do not throw MongoServerErrors from bulk write if the error is a client-side error
776780 expect ( error . errorResponse ) . not . to . be . instanceOf ( MongoServerError ) ;
777781 } 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
779783 // MongoClient. These are technically considered client errors though.
780784 expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
781785 } else {
0 commit comments