Skip to content

Commit e448798

Browse files
platy11sindresorhus
authored andcommitted
Remove t.doesNotThrow - fixes #850 (#1001)
1 parent e4f90e0 commit e448798

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

lib/assert.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ x.ifError = function (err, msg) {
154154
/*
155155
* deprecated APIs
156156
*/
157-
x.doesNotThrow = util.deprecate(x.notThrows, getDeprecationNotice('doesNotThrow()', 'notThrows()'));
158157
x.ok = util.deprecate(x.truthy, getDeprecationNotice('ok()', 'truthy()'));
159158
x.notOk = util.deprecate(x.falsy, getDeprecationNotice('notOk()', 'falsy()'));
160159
x.same = util.deprecate(x.deepEqual, getDeprecationNotice('same()', 'deepEqual()'));

test/assert.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -359,24 +359,6 @@ test('.notThrows()', function (t) {
359359
t.end();
360360
});
361361

362-
test('.doesNotThrow() alias for .notThrows()', function (t) {
363-
process.noDeprecation = true;
364-
365-
t.doesNotThrow(function () {
366-
assert.doesNotThrow(function () {});
367-
});
368-
369-
t.throws(function () {
370-
assert.doesNotThrow(function () {
371-
throw new Error('foo');
372-
});
373-
});
374-
375-
process.noDeprecation = false;
376-
377-
t.end();
378-
});
379-
380362
test('.regex()', function (t) {
381363
t.doesNotThrow(function () {
382364
assert.regex('abc', /^abc$/);

0 commit comments

Comments
 (0)