@@ -32,27 +32,27 @@ const fixtureD = fixture('define-global.js');
3232const fixtureThrows = fixture ( 'throws_error4.js' ) ;
3333
3434// test preloading a single module works
35- childProcess . exec ( nodeBinary + ' '
36- + preloadOption ( [ fixtureA ] ) + ' '
37- + fixtureB ,
35+ childProcess . exec ( nodeBinary + ' ' +
36+ preloadOption ( [ fixtureA ] ) + ' ' +
37+ fixtureB ,
3838 function ( err , stdout , stderr ) {
3939 if ( err ) throw err ;
4040 assert . strictEqual ( stdout , 'A\nB\n' ) ;
4141 } ) ;
4242
4343// test preloading multiple modules works
44- childProcess . exec ( nodeBinary + ' '
45- + preloadOption ( [ fixtureA , fixtureB ] ) + ' '
46- + fixtureC ,
44+ childProcess . exec ( nodeBinary + ' ' +
45+ preloadOption ( [ fixtureA , fixtureB ] ) + ' ' +
46+ fixtureC ,
4747 function ( err , stdout , stderr ) {
4848 if ( err ) throw err ;
4949 assert . strictEqual ( stdout , 'A\nB\nC\n' ) ;
5050 } ) ;
5151
5252// test that preloading a throwing module aborts
53- childProcess . exec ( nodeBinary + ' '
54- + preloadOption ( [ fixtureA , fixtureThrows ] ) + ' '
55- + fixtureB ,
53+ childProcess . exec ( nodeBinary + ' ' +
54+ preloadOption ( [ fixtureA , fixtureThrows ] ) + ' ' +
55+ fixtureB ,
5656 function ( err , stdout , stderr ) {
5757 if ( err ) {
5858 assert . strictEqual ( stdout , 'A\n' ) ;
@@ -62,9 +62,9 @@ childProcess.exec(nodeBinary + ' '
6262 } ) ;
6363
6464// test that preload can be used with --eval
65- childProcess . exec ( nodeBinary + ' '
66- + preloadOption ( [ fixtureA ] )
67- + '-e "console.log(\'hello\');"' ,
65+ childProcess . exec ( nodeBinary + ' ' +
66+ preloadOption ( [ fixtureA ] ) +
67+ '-e "console.log(\'hello\');"' ,
6868 function ( err , stdout , stderr ) {
6969 if ( err ) throw err ;
7070 assert . strictEqual ( stdout , 'A\nhello\n' ) ;
@@ -108,19 +108,19 @@ replProc.on('close', function(code) {
108108
109109// test that preload placement at other points in the cmdline
110110// also test that duplicated preload only gets loaded once
111- childProcess . exec ( nodeBinary + ' '
112- + preloadOption ( [ fixtureA ] )
113- + '-e "console.log(\'hello\');" '
114- + preloadOption ( [ fixtureA , fixtureB ] ) ,
111+ childProcess . exec ( nodeBinary + ' ' +
112+ preloadOption ( [ fixtureA ] ) +
113+ '-e "console.log(\'hello\');" ' +
114+ preloadOption ( [ fixtureA , fixtureB ] ) ,
115115 function ( err , stdout , stderr ) {
116116 if ( err ) throw err ;
117117 assert . strictEqual ( stdout , 'A\nB\nhello\n' ) ;
118118 } ) ;
119119
120120// test that preload works with -i
121- const interactive = childProcess . exec ( nodeBinary + ' '
122- + preloadOption ( [ fixtureD ] )
123- + '-i' ,
121+ const interactive = childProcess . exec ( nodeBinary + ' ' +
122+ preloadOption ( [ fixtureD ] ) +
123+ '-i' ,
124124 common . mustCall ( function ( err , stdout , stderr ) {
125125 assert . ifError ( err ) ;
126126 assert . strictEqual ( stdout , "> 'test'\n> " ) ;
@@ -129,20 +129,20 @@ const interactive = childProcess.exec(nodeBinary + ' '
129129interactive . stdin . write ( 'a\n' ) ;
130130interactive . stdin . write ( 'process.exit()\n' ) ;
131131
132- childProcess . exec ( nodeBinary + ' '
133- + '--require ' + fixture ( 'cluster-preload.js' ) + ' '
134- + fixture ( 'cluster-preload-test.js' ) ,
132+ childProcess . exec ( nodeBinary + ' ' +
133+ '--require ' + fixture ( 'cluster-preload.js' ) + ' ' +
134+ fixture ( 'cluster-preload-test.js' ) ,
135135 function ( err , stdout , stderr ) {
136136 if ( err ) throw err ;
137137 assert . ok ( / w o r k e r t e r m i n a t e d w i t h c o d e 4 3 / . test ( stdout ) ) ;
138138 } ) ;
139139
140140// https://github.com/nodejs/node/issues/1691
141141process . chdir ( common . fixturesDir ) ;
142- childProcess . exec ( nodeBinary + ' '
143- + '--expose_debug_as=v8debug '
144- + '--require ' + fixture ( 'cluster-preload.js' ) + ' '
145- + 'cluster-preload-test.js' ,
142+ childProcess . exec ( nodeBinary + ' ' +
143+ '--expose_debug_as=v8debug ' +
144+ '--require ' + fixture ( 'cluster-preload.js' ) + ' ' +
145+ 'cluster-preload-test.js' ,
146146 function ( err , stdout , stderr ) {
147147 if ( err ) throw err ;
148148 assert . ok ( / w o r k e r t e r m i n a t e d w i t h c o d e 4 3 / . test ( stdout ) ) ;
0 commit comments