diff options
Diffstat (limited to 'test/parallel/test-child-process-cwd.js')
-rw-r--r-- | test/parallel/test-child-process-cwd.js | 19 |
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); |