File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33require ( '../common' ) ;
4- const assert = require ( 'assert' ) . strict ;
5- /* eslint-disable no-restricted-properties */
4+ const assert = require ( 'assert' ) ;
65
76// Test that assert.ifError has the correct stack trace of both stacks.
87
@@ -26,12 +25,13 @@ const stack = err.stack;
2625 try {
2726 assert . ifError ( err ) ;
2827 } catch ( e ) {
29- assert . equal ( e . message , 'ifError got unwanted exception: test error' ) ;
30- assert . equal ( err . message , msg ) ;
31- assert . equal ( e . actual , err ) ;
32- assert . equal ( e . actual . stack , stack ) ;
33- assert . equal ( e . expected , null ) ;
34- assert . equal ( e . operator , 'ifError' ) ;
28+ assert . strictEqual ( e . message ,
29+ 'ifError got unwanted exception: test error' ) ;
30+ assert . strictEqual ( err . message , msg ) ;
31+ assert . strictEqual ( e . actual , err ) ;
32+ assert . strictEqual ( e . actual . stack , stack ) ;
33+ assert . strictEqual ( e . expected , null ) ;
34+ assert . strictEqual ( e . operator , 'ifError' ) ;
3535 threw = true ;
3636 }
3737 assert ( threw ) ;
You can’t perform that action at this time.
0 commit comments