Skip to content

Commit 8f550df

Browse files
Johnny Readingaddaleax
authored andcommitted
test: refactor child-process-spawn-error
Use const instead of var for assignments. PR-URL: #9951 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent b73f6b7 commit 8f550df

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎test/parallel/test-child-process-spawn-error.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
varcommon=require('../common');
3-
varspawn=require('child_process').spawn;
4-
varassert=require('assert');
2+
constcommon=require('../common');
3+
constspawn=require('child_process').spawn;
4+
constassert=require('assert');
55

6-
varenoentPath='foo123';
7-
varspawnargs=['bar'];
6+
constenoentPath='foo123';
7+
constspawnargs=['bar'];
88
assert.strictEqual(common.fileExists(enoentPath),false);
99

10-
varenoentChild=spawn(enoentPath,spawnargs);
10+
constenoentChild=spawn(enoentPath,spawnargs);
1111
enoentChild.on('error',common.mustCall(function(err){
1212
assert.strictEqual(err.code,'ENOENT');
1313
assert.strictEqual(err.errno,'ENOENT');

0 commit comments

Comments
 (0)