File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var common = require ( '../common' ) ;
3
- var assert = require ( 'assert' ) ;
4
- var path = require ( 'path' ) ;
5
- var child_process = require ( 'child_process' ) ;
2
+ const common = require ( '../common' ) ;
3
+ const assert = require ( 'assert' ) ;
4
+ const path = require ( 'path' ) ;
5
+ const child_process = require ( 'child_process' ) ;
6
6
7
- var wrong_script = path . join ( common . fixturesDir , 'cert.pem' ) ;
7
+ const wrong_script = path . join ( common . fixturesDir , 'cert.pem' ) ;
8
8
9
- var p = child_process . spawn ( process . execPath , [
9
+ const p = child_process . spawn ( process . execPath , [
10
10
'-e' ,
11
11
'require(process.argv[1]);' ,
12
12
wrong_script
13
13
] ) ;
14
14
15
15
p . stdout . on ( 'data' , function ( data ) {
16
- assert ( false , 'Unexpected stdout data: ' + data ) ;
16
+ common . fail ( 'Unexpected stdout data: ' + data ) ;
17
17
} ) ;
18
18
19
- var output = '' ;
19
+ let output = '' ;
20
20
21
21
p . stderr . on ( 'data' , function ( data ) {
22
22
output += data ;
You can’t perform that action at this time.
0 commit comments