Skip to content

Commit

Permalink
Remove t.doesNotThrow - fixes #850 (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
platy11 authored and sindresorhus committed Aug 14, 2016
1 parent e4f90e0 commit e448798
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion lib/assert.js
Expand Up @@ -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()'));
Expand Down
18 changes: 0 additions & 18 deletions test/assert.js
Expand Up @@ -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$/);
Expand Down

0 comments on commit e448798

Please sign in to comment.