diff options
author | Jeena Lee <ijeenalee@gmail.com> | 2016-10-21 15:49:35 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-10-25 21:38:43 -0700 |
commit | 2d472a36c1d5e565fe375185f273402f84bed528 (patch) | |
tree | e85f758718d8f713099cb5c863bfdb4c2bab4f21 /test/parallel/test-child-process-exec-cwd.js | |
parent | ed41d8d5696574a8d89e9db2001150ede240b7c6 (diff) | |
download | node-new-2d472a36c1d5e565fe375185f273402f84bed528.tar.gz |
test: clean up `test-child-process-exec-cwd.js`
- Changed `assert.ok()` to `assert.strictEqual()`.
- Changed `var` to `const` where possible.
PR-URL: https://github.com/nodejs/node/pull/9231
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Diffstat (limited to 'test/parallel/test-child-process-exec-cwd.js')
-rw-r--r-- | test/parallel/test-child-process-exec-cwd.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-exec-cwd.js b/test/parallel/test-child-process-exec-cwd.js index b1a24aca76..3b6e428a4a 100644 --- a/test/parallel/test-child-process-exec-cwd.js +++ b/test/parallel/test-child-process-exec-cwd.js @@ -1,7 +1,7 @@ 'use strict'; const common = require('../common'); -var assert = require('assert'); -var exec = require('child_process').exec; +const assert = require('assert'); +const exec = require('child_process').exec; var pwdcommand, dir; @@ -15,5 +15,5 @@ if (common.isWindows) { exec(pwdcommand, {cwd: dir}, common.mustCall(function(err, stdout, stderr) { assert.ifError(err); - assert.ok(stdout.indexOf(dir) == 0); + assert.strictEqual(stdout.indexOf(dir), 0); })); |