@@ -44,15 +44,15 @@ execFile(node, normal, function(er, stdout, stderr) {
44
44
console . error ( 'normal: show deprecation warning' ) ;
45
45
assert . strictEqual ( er , null ) ;
46
46
assert . strictEqual ( stdout , '' ) ;
47
- assert ( / u t i l \. d e b u g i s d e p r e c a t e d / . test ( stderr ) ) ;
47
+ assert ( / t h i s f u n c t i o n i s d e p r e c a t e d / . test ( stderr ) ) ;
48
48
console . log ( 'normal ok' ) ;
49
49
} ) ;
50
50
51
51
execFile ( node , noDep , function ( er , stdout , stderr ) {
52
52
console . error ( '--no-deprecation: silence deprecations' ) ;
53
53
assert . strictEqual ( er , null ) ;
54
54
assert . strictEqual ( stdout , '' ) ;
55
- assert . strictEqual ( stderr , 'DEBUG: This is deprecated\n ' ) ;
55
+ assert . strictEqual ( stderr . trim ( ) , 'This is deprecated' ) ;
56
56
console . log ( 'silent ok' ) ;
57
57
} ) ;
58
58
@@ -62,10 +62,8 @@ execFile(node, traceDep, function(er, stdout, stderr) {
62
62
assert . strictEqual ( stdout , '' ) ;
63
63
const stack = stderr . trim ( ) . split ( '\n' ) ;
64
64
// just check the top and bottom.
65
- assert (
66
- / u t i l \. d e b u g i s d e p r e c a t e d \. U s e c o n s o l e \. e r r o r i n s t e a d \. / . test ( stack [ 1 ] )
67
- ) ;
68
- assert ( / D E B U G : T h i s i s d e p r e c a t e d / . test ( stack [ 0 ] ) ) ;
65
+ assert ( / t h i s f u n c t i o n i s d e p r e c a t e d / . test ( stack [ 1 ] ) ) ;
66
+ assert ( / T h i s i s d e p r e c a t e d / . test ( stack [ 0 ] ) ) ;
69
67
console . log ( 'trace ok' ) ;
70
68
} ) ;
71
69
0 commit comments