From e4487986cd6fefa442124ef3b03cfd91cccdd66f Mon Sep 17 00:00:00 2001 From: platy11 Date: Mon, 15 Aug 2016 08:47:43 +1000 Subject: [PATCH] Remove t.doesNotThrow - fixes #850 (#1001) --- lib/assert.js | 1 - test/assert.js | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/lib/assert.js b/lib/assert.js index 03e3159..2846acf 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -154,7 +154,6 @@ x.ifError = function (err, msg) { /* * deprecated APIs */ -x.doesNotThrow = util.deprecate(x.notThrows, getDeprecationNotice('doesNotThrow()', 'notThrows()')); x.ok = util.deprecate(x.truthy, getDeprecationNotice('ok()', 'truthy()')); x.notOk = util.deprecate(x.falsy, getDeprecationNotice('notOk()', 'falsy()')); x.same = util.deprecate(x.deepEqual, getDeprecationNotice('same()', 'deepEqual()')); diff --git a/test/assert.js b/test/assert.js index 306e1cf..36d73d6 100644 --- a/test/assert.js +++ b/test/assert.js @@ -359,24 +359,6 @@ test('.notThrows()', function (t) { t.end(); }); -test('.doesNotThrow() alias for .notThrows()', function (t) { - process.noDeprecation = true; - - t.doesNotThrow(function () { - assert.doesNotThrow(function () {}); - }); - - t.throws(function () { - assert.doesNotThrow(function () { - throw new Error('foo'); - }); - }); - - process.noDeprecation = false; - - t.end(); -}); - test('.regex()', function (t) { t.doesNotThrow(function () { assert.regex('abc', /^abc$/);