2
2
// Vows.js - asynchronous promise-based testing for node.js
3
3
//
4
4
// usage:
5
- //
5
+ //
6
6
// var vows = require('vows'),
7
7
// assert = require('assert');
8
8
//
14
14
//
15
15
var path = require ( 'path' ) ;
16
16
17
- require . paths . unshift ( path . join ( path . dirname ( __filename ) , 'vendor' ) ,
17
+ require . paths . unshift ( path . join ( path . dirname ( __filename ) , 'vendor' ) ,
18
18
path . dirname ( __filename ) ) ;
19
19
20
20
var sys = require ( 'sys' ) ,
@@ -28,7 +28,7 @@ var total = 0, honored = 0,
28
28
broken = 0 , errored = 0 ,
29
29
start , end ;
30
30
31
- // Context stack, used in addVow() to keep track
31
+ // Context stack, used in addVow() to keep track
32
32
var lastContext ;
33
33
34
34
// Output buffer
@@ -78,7 +78,7 @@ function addVow(/* description & callback */) {
78
78
if ( args [ 0 ] instanceof Function ) {
79
79
vow . callback = args [ 0 ] , vow . description = args [ 1 ] ;
80
80
} else {
81
- vow . callback = args [ 1 ] , vow . description = args [ 0 ] ;
81
+ vow . callback = args [ 1 ] , vow . description = args [ 0 ] ;
82
82
}
83
83
} else if ( args [ 0 ] . constructor . name === 'Vow' ) {
84
84
vow = args [ 0 ] ;
@@ -300,7 +300,7 @@ vows.tell = function (topic, tests) {
300
300
return run ( new ( Context ) ( vow , ctx ) ) ;
301
301
} ;
302
302
} ( vow , ctx ) ) ;
303
- } else {
303
+ } else {
304
304
run ( new ( Context ) ( vow , ctx ) ) ;
305
305
}
306
306
}
0 commit comments