aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-cwd.js
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-child-process-cwd.js
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadandroid-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.bz2
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.zip
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-cwd.js')
-rw-r--r--test/parallel/test-child-process-cwd.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/parallel/test-child-process-cwd.js b/test/parallel/test-child-process-cwd.js
index 087a852434..e1dcf85b09 100644
--- a/test/parallel/test-child-process-cwd.js
+++ b/test/parallel/test-child-process-cwd.js
@@ -57,26 +57,27 @@ function testCwd(options, forCode, forData) {
}
// Assume these exist, and 'pwd' gives us the right directory back
-testCwd({cwd: common.rootDir}, 0, common.rootDir);
+testCwd({ cwd: common.rootDir }, 0, common.rootDir);
if (common.isWindows) {
- testCwd({cwd: process.env.windir}, 0, process.env.windir);
+ testCwd({ cwd: process.env.windir }, 0, process.env.windir);
} else {
- testCwd({cwd: '/dev'}, 0, '/dev');
+ testCwd({ cwd: '/dev' }, 0, '/dev');
}
// Assume does-not-exist doesn't exist, expect exitCode=-1 and errno=ENOENT
{
- testCwd({cwd: 'does-not-exist'}, -1).on('error', common.mustCall(function(e) {
- assert.strictEqual(e.code, 'ENOENT');
- }));
+ testCwd({ cwd: 'does-not-exist' }, -1)
+ .on('error', common.mustCall(function(e) {
+ assert.strictEqual(e.code, 'ENOENT');
+ }));
}
// Spawn() shouldn't try to chdir() so this should just work
testCwd(undefined, 0);
testCwd({}, 0);
-testCwd({cwd: ''}, 0);
-testCwd({cwd: undefined}, 0);
-testCwd({cwd: null}, 0);
+testCwd({ cwd: '' }, 0);
+testCwd({ cwd: undefined }, 0);
+testCwd({ cwd: null }, 0);
// Check whether all tests actually returned
assert.notStrictEqual(returns, 0);