@@ -37,7 +37,7 @@ childProcess.exec(nodeBinary + ' '
37
37
+ fixtureB ,
38
38
function ( err , stdout , stderr ) {
39
39
if ( err ) throw err ;
40
- assert . equal ( stdout , 'A\nB\n' ) ;
40
+ assert . strictEqual ( stdout , 'A\nB\n' ) ;
41
41
} ) ;
42
42
43
43
// test preloading multiple modules works
@@ -46,7 +46,7 @@ childProcess.exec(nodeBinary + ' '
46
46
+ fixtureC ,
47
47
function ( err , stdout , stderr ) {
48
48
if ( err ) throw err ;
49
- assert . equal ( stdout , 'A\nB\nC\n' ) ;
49
+ assert . strictEqual ( stdout , 'A\nB\nC\n' ) ;
50
50
} ) ;
51
51
52
52
// test that preloading a throwing module aborts
@@ -55,7 +55,7 @@ childProcess.exec(nodeBinary + ' '
55
55
+ fixtureB ,
56
56
function ( err , stdout , stderr ) {
57
57
if ( err ) {
58
- assert . equal ( stdout , 'A\n' ) ;
58
+ assert . strictEqual ( stdout , 'A\n' ) ;
59
59
} else {
60
60
throw new Error ( 'Preload should have failed' ) ;
61
61
}
@@ -67,7 +67,7 @@ childProcess.exec(nodeBinary + ' '
67
67
+ '-e "console.log(\'hello\');"' ,
68
68
function ( err , stdout , stderr ) {
69
69
if ( err ) throw err ;
70
- assert . equal ( stdout , 'A\nhello\n' ) ;
70
+ assert . strictEqual ( stdout , 'A\nhello\n' ) ;
71
71
} ) ;
72
72
73
73
// test that preload can be used with stdin
@@ -76,14 +76,14 @@ const stdinProc = childProcess.spawn(
76
76
[ '--require' , fixtureA ] ,
77
77
{ stdio : 'pipe' }
78
78
) ;
79
- stdinProc . stdin . end ( ' console.log(\ 'hello\ ');' ) ;
79
+ stdinProc . stdin . end ( " console.log('hello');" ) ;
80
80
var stdinStdout = '' ;
81
81
stdinProc . stdout . on ( 'data' , function ( d ) {
82
82
stdinStdout += d ;
83
83
} ) ;
84
84
stdinProc . on ( 'close' , function ( code ) {
85
- assert . equal ( code , 0 ) ;
86
- assert . equal ( stdinStdout , 'A\nhello\n' ) ;
85
+ assert . strictEqual ( code , 0 ) ;
86
+ assert . strictEqual ( stdinStdout , 'A\nhello\n' ) ;
87
87
} ) ;
88
88
89
89
// test that preload can be used with repl
@@ -98,12 +98,12 @@ replProc.stdout.on('data', function(d) {
98
98
replStdout += d ;
99
99
} ) ;
100
100
replProc . on ( 'close' , function ( code ) {
101
- assert . equal ( code , 0 ) ;
101
+ assert . strictEqual ( code , 0 ) ;
102
102
const output = [
103
103
'A' ,
104
104
'> '
105
105
] . join ( '\n' ) ;
106
- assert . equal ( replStdout , output ) ;
106
+ assert . strictEqual ( replStdout , output ) ;
107
107
} ) ;
108
108
109
109
// test that preload placement at other points in the cmdline
@@ -114,7 +114,7 @@ childProcess.exec(nodeBinary + ' '
114
114
+ preloadOption ( [ fixtureA , fixtureB ] ) ,
115
115
function ( err , stdout , stderr ) {
116
116
if ( err ) throw err ;
117
- assert . equal ( stdout , 'A\nB\nhello\n' ) ;
117
+ assert . strictEqual ( stdout , 'A\nB\nhello\n' ) ;
118
118
} ) ;
119
119
120
120
// test that preload works with -i
@@ -123,7 +123,7 @@ const interactive = childProcess.exec(nodeBinary + ' '
123
123
+ '-i' ,
124
124
common . mustCall ( function ( err , stdout , stderr ) {
125
125
assert . ifError ( err ) ;
126
- assert . strictEqual ( stdout , ` > 'test'\n> ` ) ;
126
+ assert . strictEqual ( stdout , " > 'test'\n> " ) ;
127
127
} ) ) ;
128
128
129
129
interactive . stdin . write ( 'a\n' ) ;
0 commit comments