File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -281,10 +281,10 @@ function addVows(tests) {
281
281
282
282
function puts ( ) {
283
283
var args = Array . prototype . slice . call ( arguments ) ;
284
- if ( vows . promises [ suites - 1 ] . listeners ( 'finish' ) . length > 0 ) {
284
+ if ( vows . promises . length && vows . promises [ suites - 1 ] . listeners ( 'finish' ) . length > 0 ) {
285
285
buffer . push ( args . join ( '\n' ) ) ;
286
286
} else {
287
- sys . puts . apply ( null , args ) ;
287
+ sys . puts . apply ( null , args ) ;
288
288
}
289
289
}
290
290
@@ -388,11 +388,10 @@ vows.describe = function (subject) {
388
388
broken = 0 , errored = 0 ;
389
389
buffer = [ ] , suites = 0 ;
390
390
391
- process . nextTick ( function ( ) {
392
- if ( ! vows . options . brief ) {
393
- puts ( '\n' + stylize ( subject , 'underline' ) + '\n' ) ;
394
- }
395
- } ) ;
391
+ if ( ! vows . options . brief ) {
392
+ puts ( '\n' + stylize ( subject , 'underline' ) + '\n' ) ;
393
+ }
394
+
396
395
return new ( events . EventEmitter ) ( ) . addListener ( 'newListener' , function ( e , listener ) {
397
396
var that = this ;
398
397
if ( e === 'end' ) {
You can’t perform that action at this time.
0 commit comments