Skip to content

Commit

Permalink
[Tests] add failing test for #425
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 26, 2021
1 parent 9d3c5b4 commit eba8b2d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/onFinish.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ tap.test('on finish', { timeout: 1000 }, function (tt) {
t.end();
});
});

var tapeHarness = tape.createHarness();

tap.test('on finish (createHarness)', { timeout: 1000 }, function (tt) {
tt.plan(1);
tapeHarness.onFinish(function () {
tt.pass('tape ended');
});
tapeHarness('dummy test', function (t) {
t.end();
});
});

0 comments on commit eba8b2d

Please sign in to comment.