summaryrefslogtreecommitdiff
path: root/test/sequential/test-child-process-execsync.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/sequential/test-child-process-execsync.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/sequential/test-child-process-execsync.js')
-rw-r--r--test/sequential/test-child-process-execsync.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js
index 4fb2915010..63046517a9 100644
--- a/test/sequential/test-child-process-execsync.js
+++ b/test/sequential/test-child-process-execsync.js
@@ -34,12 +34,12 @@ let caught = false;
// Verify that stderr is not accessed when a bad shell is used
assert.throws(
- function() { execSync('exit -1', {shell: 'bad_shell'}); },
+ function() { execSync('exit -1', { shell: 'bad_shell' }); },
/spawnSync bad_shell ENOENT/,
'execSync did not throw the expected exception!'
);
assert.throws(
- function() { execFileSync('exit -1', {shell: 'bad_shell'}); },
+ function() { execFileSync('exit -1', { shell: 'bad_shell' }); },
/spawnSync bad_shell ENOENT/,
'execFileSync did not throw the expected exception!'
);
@@ -47,7 +47,7 @@ assert.throws(
let cmd, ret;
try {
cmd = `"${process.execPath}" -e "setTimeout(function(){}, ${SLEEP});"`;
- ret = execSync(cmd, {timeout: TIMER});
+ ret = execSync(cmd, { timeout: TIMER });
} catch (e) {
caught = true;
assert.strictEqual(e.errno, 'ETIMEDOUT');
@@ -97,7 +97,7 @@ assert.strictEqual(ret, `${msg}\n`,
{
const cwd = common.rootDir;
const cmd = common.isWindows ? 'echo %cd%' : 'pwd';
- const response = execSync(cmd, {cwd});
+ const response = execSync(cmd, { cwd });
assert.strictEqual(response.toString().trim(), cwd);
}
@@ -105,7 +105,7 @@ assert.strictEqual(ret, `${msg}\n`,
// Verify that stderr is not accessed when stdio = 'ignore' - GH #7966
{
assert.throws(function() {
- execSync('exit -1', {stdio: 'ignore'});
+ execSync('exit -1', { stdio: 'ignore' });
}, /Command failed: exit -1/);
}