File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ var fs = require('fs');
66var flatten = require ( 'arr-flatten' ) ;
77var Promise = require ( 'bluebird' ) ;
88var figures = require ( 'figures' ) ;
9- var objectAssign = require ( 'object-assign' ) ;
109var globby = require ( 'globby' ) ;
1110var chalk = require ( 'chalk' ) ;
1211var fork = require ( './lib/fork' ) ;
@@ -18,9 +17,7 @@ function Api(files, options) {
1817
1918 EventEmitter . call ( this ) ;
2019
21- objectAssign ( this , options ) ;
22- this . options = options ;
23-
20+ this . options = options || { } ;
2421 this . rejectionCount = 0 ;
2522 this . exceptionCount = 0 ;
2623 this . passCount = 0 ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ test('fail-fast mode', function (t) {
6363
6464 api . run ( )
6565 . then ( function ( ) {
66- t . ok ( api . failFast ) ;
66+ t . ok ( api . options . failFast ) ;
6767 t . is ( api . passCount , 1 ) ;
6868 t . is ( api . failCount , 1 ) ;
6969 t . true ( / f a l s e f a i l f a l s e / . test ( api . errors [ 0 ] . error . message ) ) ;
@@ -79,7 +79,7 @@ test('serial execution mode', function (t) {
7979
8080 api . run ( )
8181 . then ( function ( ) {
82- t . ok ( api . serial ) ;
82+ t . ok ( api . options . serial ) ;
8383 t . is ( api . passCount , 2 ) ;
8484 } ) ;
8585} ) ;
You can’t perform that action at this time.
0 commit comments