summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-spawn-shell.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-01-28 10:21:57 -0500
committercjihrig <cjihrig@gmail.com>2016-01-28 11:31:31 -0500
commitefd33a2a9a7352e608c1d315161c31805f65969d (patch)
treeead1934a01ebac3e2c5746f6be4a27145c37eae7 /test/parallel/test-child-process-spawn-shell.js
parent452928eb24342756b422bce672a73930e8da9a7a (diff)
downloadandroid-node-v8-efd33a2a9a7352e608c1d315161c31805f65969d.tar.gz
android-node-v8-efd33a2a9a7352e608c1d315161c31805f65969d.tar.bz2
android-node-v8-efd33a2a9a7352e608c1d315161c31805f65969d.zip
test: update arrow function style
This commit applies new arrow function linting rules across the codebase. As it turns out, the only offenders were in the test directory. PR-URL: https://github.com/nodejs/node/pull/4813 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-child-process-spawn-shell.js')
-rw-r--r--test/parallel/test-child-process-spawn-shell.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-spawn-shell.js b/test/parallel/test-child-process-spawn-shell.js
index 555e02ff71..591fb409cb 100644
--- a/test/parallel/test-child-process-spawn-shell.js
+++ b/test/parallel/test-child-process-spawn-shell.js
@@ -26,7 +26,7 @@ let echoOutput = '';
assert.strictEqual(echo.spawnargs[echo.spawnargs.length - 1].replace(/"/g, ''),
'echo foo');
-echo.stdout.on('data', data => {
+echo.stdout.on('data', (data) => {
echoOutput += data;
});
echo.on('close', common.mustCall((code, signal) => {
@@ -41,7 +41,7 @@ const command = cp.spawn(cmd, {
});
let commandOutput = '';
-command.stdout.on('data', data => {
+command.stdout.on('data', (data) => {
commandOutput += data;
});
command.on('close', common.mustCall((code, signal) => {
@@ -56,7 +56,7 @@ const env = cp.spawn(`"${process.execPath}" -pe process.env.BAZ`, {
});
let envOutput = '';
-env.stdout.on('data', data => {
+env.stdout.on('data', (data) => {
envOutput += data;
});
env.on('close', common.mustCall((code, signal) => {