File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ x.ifError = function (err, msg) {
154
154
/*
155
155
* deprecated APIs
156
156
*/
157
- x . doesNotThrow = util . deprecate ( x . notThrows , getDeprecationNotice ( 'doesNotThrow()' , 'notThrows()' ) ) ;
158
157
x . ok = util . deprecate ( x . truthy , getDeprecationNotice ( 'ok()' , 'truthy()' ) ) ;
159
158
x . notOk = util . deprecate ( x . falsy , getDeprecationNotice ( 'notOk()' , 'falsy()' ) ) ;
160
159
x . same = util . deprecate ( x . deepEqual , getDeprecationNotice ( 'same()' , 'deepEqual()' ) ) ;
Original file line number Diff line number Diff line change @@ -359,24 +359,6 @@ test('.notThrows()', function (t) {
359
359
t . end ( ) ;
360
360
} ) ;
361
361
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
-
380
362
test ( '.regex()' , function ( t ) {
381
363
t . doesNotThrow ( function ( ) {
382
364
assert . regex ( 'abc' , / ^ a b c $ / ) ;
You can’t perform that action at this time.
0 commit comments