Skip to content

Commit

Permalink
remove redundant tests in test/throws.js (assertion unchanged! tests …
Browse files Browse the repository at this point in the history
…pass) for #312
  • Loading branch information
nelsonic committed Sep 2, 2016
1 parent aa021eb commit fd7eb30
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/throws.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ function getNonFunctionMessage(fn) {
}
}

tape('throws', function (t) {
t.throws(fn);
t.end();
});

tape('throws (RegExp match)', function (t) {
t.throws(fn, /RegExp/, 'regex with no anchors');
t.throws(fn, /^TypeError: Reg/, 'regex with starting anchor');
t.throws(fn, /RegExp$/, 'regex with ending anchor');
t.throws(fn, /^TypeError: RegExp$/, 'regex with both anchors');
t.end();
});

tape('throws (Function match)', function (t) {
t.throws(fn, TypeError);
t.end();
});

tap.test('failures', function (tt) {
tt.plan(1);

Expand Down

0 comments on commit fd7eb30

Please sign in to comment.