File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -338,25 +338,25 @@ this.tryEnd = function (batch) {
338
338
Object . defineProperty ( env , "callback" , {
339
339
get : function ( ) {
340
340
teardown . awaitingCallback = true ;
341
-
341
+
342
342
return function ( ) {
343
343
teardown . awaitingCallback = false ;
344
344
maybeFinish ( ) ;
345
345
} ;
346
346
}
347
- } )
347
+ } ) ;
348
348
349
349
teardown . tests . teardown . apply ( env , teardown . topics ) ;
350
350
}
351
351
352
352
function maybeFinish ( ) {
353
- var pending = batch . teardowns . filter ( function ( teardown ) {
354
- return teardown . awaitingCallback ;
355
- } ) ;
353
+ var pending = batch . teardowns . filter ( function ( teardown ) {
354
+ return teardown . awaitingCallback ;
355
+ } ) ;
356
356
357
- if ( pending . length === 0 ) {
358
- finish ( ) ;
359
- }
357
+ if ( pending . length === 0 ) {
358
+ finish ( ) ;
359
+ }
360
360
}
361
361
362
362
function finish ( ) {
Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ vows.describe("Vows with asynchonous teardowns").addBatch({
477
477
} ) . addBatch ( {
478
478
"The next batch" : {
479
479
"is not run until the teardown is complete" : function ( ) {
480
- assert . ok ( tornDown )
480
+ assert . ok ( tornDown ) ;
481
481
}
482
482
}
483
483
} ) . export ( module ) ;
You can’t perform that action at this time.
0 commit comments