Skip to content

Commit fc889f5

Browse files
committed
Exposing the whole test harness
1 parent bea81d2 commit fc889f5

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ exports = module.exports = (function () {
3636
return harness.createStream(opts);
3737
};
3838

39-
lazyLoad.results = function () {
40-
return getHarness()._results
41-
}
39+
lazyLoad.getHarness = getHarness
4240

4341
return lazyLoad
4442

test/exposed-harness.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var tape = require('../');
2+
var tap = require('tap');
3+
4+
tap.test('main harness object is exposed', function (assert) {
5+
6+
assert.equal(typeof tape.getHarness, 'function', 'tape.getHarness is a function')
7+
8+
assert.equal(tape.getHarness()._results.pass, 0)
9+
10+
assert.end()
11+
12+
})
13+

test/exposed-results.js

-13
This file was deleted.

0 commit comments

Comments
 (0)