File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
require ( '../common' ) ;
4
- const assert = require ( 'assert' ) . strict ;
5
- /* eslint-disable no-restricted-properties */
4
+ const assert = require ( 'assert' ) ;
6
5
7
6
// Test that assert.ifError has the correct stack trace of both stacks.
8
7
@@ -26,12 +25,13 @@ const stack = err.stack;
26
25
try {
27
26
assert . ifError ( err ) ;
28
27
} 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' ) ;
35
35
threw = true ;
36
36
}
37
37
assert ( threw ) ;
You can’t perform that action at this time.
0 commit comments