File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var canExit = typeof process !== 'undefined' && process
13
13
&& typeof process . exit === 'function'
14
14
;
15
15
16
- function createHarness ( ) {
16
+ function createHarness ( conf_ ) {
17
17
var pending = [ ] ;
18
18
var running = false ;
19
19
@@ -22,7 +22,7 @@ function createHarness () {
22
22
23
23
var test = function ( name , conf , cb ) {
24
24
var t = new Test ( name , conf , cb ) ;
25
- if ( ! conf || typeof conf !== 'object' ) conf = { } ;
25
+ if ( ! conf || typeof conf !== 'object' ) conf = conf_ || { } ;
26
26
27
27
if ( conf . exit !== false && canEmitExit ) {
28
28
process . on ( 'exit' , function ( code ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var tap = require('tap');
5
5
tap . test ( 'array test' , function ( tt ) {
6
6
tt . plan ( 1 ) ;
7
7
8
- var test = tape . createHarness ( ) ;
8
+ var test = tape . createHarness ( { exit : false } ) ;
9
9
var tc = tap . createConsumer ( ) ;
10
10
11
11
var rows = [ ] ;
Original file line number Diff line number Diff line change 1
1
var test = require ( '../' ) ;
2
- var harness = test . createHarness ( ) ;
2
+ var harness = test . createHarness ( { exit : false } ) ;
3
3
4
4
// minimal write stream mockery
5
5
var collector = {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var tap = require('tap');
5
5
tap . test ( 'array test' , function ( tt ) {
6
6
tt . plan ( 1 ) ;
7
7
8
- var test = tape . createHarness ( ) ;
8
+ var test = tape . createHarness ( { exit : false } ) ;
9
9
var tc = tap . createConsumer ( ) ;
10
10
11
11
var rows = [ ] ;
You can’t perform that action at this time.
0 commit comments