Skip to content

Commit c8e11e1

Browse files
author
James Halliday
committed
update tests to thread through exit: false
1 parent 329f784 commit c8e11e1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var canExit = typeof process !== 'undefined' && process
1313
&& typeof process.exit === 'function'
1414
;
1515

16-
function createHarness () {
16+
function createHarness (conf_) {
1717
var pending = [];
1818
var running = false;
1919

@@ -22,7 +22,7 @@ function createHarness () {
2222

2323
var test = function (name, conf, cb) {
2424
var t = new Test(name, conf, cb);
25-
if (!conf || typeof conf !== 'object') conf = {};
25+
if (!conf || typeof conf !== 'object') conf = conf_ || {};
2626

2727
if (conf.exit !== false && canEmitExit) {
2828
process.on('exit', function (code) {

test/fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var tap = require('tap');
55
tap.test('array test', function (tt) {
66
tt.plan(1);
77

8-
var test = tape.createHarness();
8+
var test = tape.createHarness({ exit : false });
99
var tc = tap.createConsumer();
1010

1111
var rows = [];

test/harness.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var test = require('../');
2-
var harness = test.createHarness();
2+
var harness = test.createHarness({ exit : false });
33

44
// minimal write stream mockery
55
var collector = {

test/too_many.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var tap = require('tap');
55
tap.test('array test', function (tt) {
66
tt.plan(1);
77

8-
var test = tape.createHarness();
8+
var test = tape.createHarness({ exit : false });
99
var tc = tap.createConsumer();
1010

1111
var rows = [];

0 commit comments

Comments
 (0)