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 11'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' ) ;
66
7- var wrong_script = path . join ( common . fixturesDir , 'cert.pem' ) ;
7+ const wrong_script = path . join ( common . fixturesDir , 'cert.pem' ) ;
88
9- var p = child_process . spawn ( process . execPath , [
9+ const p = child_process . spawn ( process . execPath , [
1010 '-e' ,
1111 'require(process.argv[1]);' ,
1212 wrong_script
1313] ) ;
1414
1515p . stdout . on ( 'data' , function ( data ) {
16- assert ( false , 'Unexpected stdout data: ' + data ) ;
16+ common . fail ( 'Unexpected stdout data: ' + data ) ;
1717} ) ;
1818
19- var output = '' ;
19+ let output = '' ;
2020
2121p . stderr . on ( 'data' , function ( data ) {
2222 output += data ;
You can’t perform that action at this time.
0 commit comments