Skip to content

Commit

Permalink
Exposing the whole test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
TehShrike committed Aug 11, 2015
1 parent bea81d2 commit fc889f5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ exports = module.exports = (function () {
return harness.createStream(opts);
};

lazyLoad.results = function () {
return getHarness()._results
}
lazyLoad.getHarness = getHarness

return lazyLoad

Expand Down
13 changes: 13 additions & 0 deletions test/exposed-harness.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var tape = require('../');
var tap = require('tap');

tap.test('main harness object is exposed', function (assert) {

assert.equal(typeof tape.getHarness, 'function', 'tape.getHarness is a function')

assert.equal(tape.getHarness()._results.pass, 0)

assert.end()

})

13 changes: 0 additions & 13 deletions test/exposed-results.js

This file was deleted.

0 comments on commit fc889f5

Please sign in to comment.