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>
This commit is contained in:
Jeena Lee authored and Myles Borins committed 2016-11-22 13:44:35 +08:00
1 parent 89eb175c89
commit 8d985c293c
1 file changed
+3 -3
+3 -3
View File
@@ -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);
}));