Skip to content

Commit fd7eb30

Browse files
committed
remove redundant tests in test/throws.js (assertion unchanged! tests pass) for #312
1 parent aa021eb commit fd7eb30

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/throws.js

-18
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,6 @@ function getNonFunctionMessage(fn) {
1414
}
1515
}
1616

17-
tape('throws', function (t) {
18-
t.throws(fn);
19-
t.end();
20-
});
21-
22-
tape('throws (RegExp match)', function (t) {
23-
t.throws(fn, /RegExp/, 'regex with no anchors');
24-
t.throws(fn, /^TypeError: Reg/, 'regex with starting anchor');
25-
t.throws(fn, /RegExp$/, 'regex with ending anchor');
26-
t.throws(fn, /^TypeError: RegExp$/, 'regex with both anchors');
27-
t.end();
28-
});
29-
30-
tape('throws (Function match)', function (t) {
31-
t.throws(fn, TypeError);
32-
t.end();
33-
});
34-
3517
tap.test('failures', function (tt) {
3618
tt.plan(1);
3719

0 commit comments

Comments
 (0)