Skip to content

Commit f8f92e4

Browse files
author
matzavinos
committed
test: cleanup test-child-process-stdio.js
- refactor vars to const and let issue: nodejs/code-and-learn#56(comment) modified file: test/parallel/test-child-process-stdio.js refactor variable declaration "var common" to "const common" refactor variable declaration "var assert" to "const assert" refactor variable declaration "var options" to "let options" refactor variable declaration "var child" to "let child"
1 parent 2a2ec9d commit f8f92e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-child-process-stdio.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
2+
const common = require('../common');
3+
const assert = require('assert');
44

5-
var options = {stdio: ['pipe']};
6-
var child = common.spawnPwd(options);
5+
let options = {stdio: ['pipe']};
6+
let child = common.spawnPwd(options);
77

88
assert.notEqual(child.stdout, null);
99
assert.notEqual(child.stderr, null);

0 commit comments

Comments
 (0)