From fd7eb30bea4328cebeaa38d9bea4c21c47f12e5e Mon Sep 17 00:00:00 2001 From: nelsonic Date: Fri, 2 Sep 2016 20:02:09 +0100 Subject: [PATCH] remove redundant tests in test/throws.js (assertion unchanged! tests pass) for #312 --- test/throws.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/throws.js b/test/throws.js index 44ce1382..1867aa84 100644 --- a/test/throws.js +++ b/test/throws.js @@ -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);