@@ -26,12 +26,12 @@ const assert = require('assert');
2626
2727// changes in environment should be visible to child processes
2828if ( process . argv [ 2 ] === 'you-are-the-child' ) {
29- assert . strictEqual ( false , 'NODE_PROCESS_ENV_DELETED' in process . env ) ;
30- assert . strictEqual ( '42' , process . env . NODE_PROCESS_ENV ) ;
31- assert . strictEqual ( 'asdf' , process . env . hasOwnProperty ) ;
29+ assert . strictEqual ( 'NODE_PROCESS_ENV_DELETED' in process . env , false ) ;
30+ assert . strictEqual ( process . env . NODE_PROCESS_ENV , '42' ) ;
31+ assert . strictEqual ( process . env . hasOwnProperty , 'asdf' ) ;
3232 const hasOwnProperty = Object . prototype . hasOwnProperty ;
3333 const has = hasOwnProperty . call ( process . env , 'hasOwnProperty' ) ;
34- assert . strictEqual ( true , has ) ;
34+ assert . strictEqual ( has , true ) ;
3535 process . exit ( 0 ) ;
3636}
3737
@@ -41,18 +41,18 @@ if (process.argv[2] === 'you-are-the-child') {
4141 assert . strictEqual ( Object . prototype . hasOwnProperty ,
4242 process . env . hasOwnProperty ) ;
4343 const has = process . env . hasOwnProperty ( 'hasOwnProperty' ) ;
44- assert . strictEqual ( false , has ) ;
44+ assert . strictEqual ( has , false ) ;
4545
4646 process . env . hasOwnProperty = 'asdf' ;
4747
4848 process . env . NODE_PROCESS_ENV = 42 ;
49- assert . strictEqual ( '42' , process . env . NODE_PROCESS_ENV ) ;
49+ assert . strictEqual ( process . env . NODE_PROCESS_ENV , '42' ) ;
5050
5151 process . env . NODE_PROCESS_ENV_DELETED = 42 ;
52- assert . strictEqual ( true , 'NODE_PROCESS_ENV_DELETED' in process . env ) ;
52+ assert . strictEqual ( 'NODE_PROCESS_ENV_DELETED' in process . env , true ) ;
5353
5454 delete process . env . NODE_PROCESS_ENV_DELETED ;
55- assert . strictEqual ( false , 'NODE_PROCESS_ENV_DELETED' in process . env ) ;
55+ assert . strictEqual ( 'NODE_PROCESS_ENV_DELETED' in process . env , false ) ;
5656
5757 const child = spawn ( process . argv [ 0 ] , [ process . argv [ 1 ] , 'you-are-the-child' ] ) ;
5858 child . stdout . on ( 'data' , function ( data ) { console . log ( data . toString ( ) ) ; } ) ;
0 commit comments