summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-stdio.js
diff options
context:
space:
mode:
authorDennis Schwartz <dennis@repositive.io>2016-09-17 11:40:08 +0200
committerIlkka Myller <ilkka.myller@nodefield.com>2016-09-19 23:33:56 +0300
commit366495d4e221ccd7080a0a05ce67160905b4a6a5 (patch)
tree49b745ba1346292f7daa612a52748182e7d30af0 /test/parallel/test-child-process-stdio.js
parent626a07df5bae2b32f88863edb9f4404b42de1ad6 (diff)
downloadandroid-node-v8-366495d4e221ccd7080a0a05ce67160905b4a6a5.tar.gz
android-node-v8-366495d4e221ccd7080a0a05ce67160905b4a6a5.tar.bz2
android-node-v8-366495d4e221ccd7080a0a05ce67160905b4a6a5.zip
test: improve child_process tests
Replaced var keyword with const and let in the tests for child process stdin and stdio. PR-URL: https://github.com/nodejs/node/pull/8617 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Diffstat (limited to 'test/parallel/test-child-process-stdio.js')
-rw-r--r--test/parallel/test-child-process-stdio.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-child-process-stdio.js b/test/parallel/test-child-process-stdio.js
index 2daa748371..e24987ca64 100644
--- a/test/parallel/test-child-process-stdio.js
+++ b/test/parallel/test-child-process-stdio.js
@@ -1,9 +1,9 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
+const common = require('../common');
+const assert = require('assert');
-var options = {stdio: ['pipe']};
-var child = common.spawnPwd(options);
+let options = {stdio: ['pipe']};
+let child = common.spawnPwd(options);
assert.notEqual(child.stdout, null);
assert.notEqual(child.stderr, null);