@@ -309,45 +309,46 @@ describe('Write Concern', function () {
309309 let client : MongoClient ;
310310 let collection : Collection ;
311311 const commands : CommandStartedEvent [ ] = [ ] ;
312+
312313 beforeEach ( async function ( ) {
313314 client = this . configuration . newClient ( { } , { monitorCommands : true } ) ;
314315 client . on ( 'commandStarted' , filterForCommands ( 'insert' , commands ) ) ;
315316 collection = client . db ( 'foo' ) . collection ( 'bar' ) ;
316- } )
317-
317+ } ) ;
318318
319319 afterEach ( async function ( ) {
320320 await client . close ( ) ;
321321 commands . length = 0 ;
322- } )
322+ } ) ;
323323
324324 context ( 'when the write concern includes only timeouts' , function ( ) {
325325 it ( 'the writeConcern is not added to the command.' , async function ( ) {
326- await collection . insertOne ( { name : 'john doe' } , { timeoutMS : 1000 , writeConcern : { wtimeout : 1000 } } ) ;
326+ await collection . insertOne (
327+ { name : 'john doe' } ,
328+ { timeoutMS : 1000 , writeConcern : { wtimeout : 1000 } }
329+ ) ;
327330 const [
328331 {
329- command : {
330- writeConcern
331- }
332+ command : { writeConcern }
332333 }
333334 ] = commands ;
334335 expect ( writeConcern ) . not . to . exist ;
335- } )
336- } )
336+ } ) ;
337+ } ) ;
337338
338339 context ( 'when the write concern includes only non-timeout values (`w`)' , function ( ) {
339340 it ( 'the writeConcern is added to the command.' , async function ( ) {
340- await collection . insertOne ( { name : 'john doe' } , { timeoutMS : 1000 , writeConcern : { wtimeout : 1000 , w : 'majority' } } ) ;
341+ await collection . insertOne (
342+ { name : 'john doe' } ,
343+ { timeoutMS : 1000 , writeConcern : { wtimeout : 1000 , w : 'majority' } }
344+ ) ;
341345 const [
342346 {
343- command : {
344- writeConcern
345- }
347+ command : { writeConcern }
346348 }
347349 ] = commands ;
348- expect ( writeConcern ) . to . deep . equal ( { w : 'majority' } )
349- } )
350-
351- } )
352- } )
350+ expect ( writeConcern ) . to . deep . equal ( { w : 'majority' } ) ;
351+ } ) ;
352+ } ) ;
353+ } ) ;
353354} ) ;
0 commit comments