File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ var help = [
39
39
var options = {
40
40
reporter : reporter ,
41
41
matcher : / .* / ,
42
- watch : false ,
43
- error : true
42
+ watch : false
44
43
} ;
45
44
46
45
var files = [ ] ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ this.Suite = function (subject) {
11
11
this . matcher = / .* / ;
12
12
this . reporter = require ( 'vows/reporters/dot-matrix' ) ;
13
13
this . batches = [ ] ;
14
+ this . options = { error : true } ;
14
15
this . reset ( ) ;
15
16
} ;
16
17
@@ -219,9 +220,10 @@ this.Suite.prototype = new(function () {
219
220
220
221
options = options || { } ;
221
222
222
- this . matcher = options . matcher || this . matcher ;
223
- this . reporter = options . reporter || this . reporter ;
224
- this . options = options ;
223
+ for ( var k in options ) { this . options [ k ] = options [ k ] }
224
+
225
+ this . matcher = this . options . matcher || this . matcher ;
226
+ this . reporter = this . options . reporter || this . reporter ;
225
227
226
228
this . batches . forEach ( function ( batch ) {
227
229
that . parseBatch ( batch , that . matcher ) ;
@@ -265,7 +267,9 @@ this.Suite.prototype = new(function () {
265
267
266
268
this . runParallel = function ( ) { } ;
267
269
268
- this . export = function ( module ) {
270
+ this . export = function ( module , options ) {
271
+ for ( var k in ( options || { } ) ) { this . options [ k ] = options [ k ] }
272
+
269
273
if ( require . main === module ) {
270
274
return this . run ( ) ;
271
275
} else {
You can’t perform that action at this time.
0 commit comments