Skip to content

Commit 8d985c2

Browse files
jeenaleeMyles Borins
authored and
Myles Borins
committed
test: clean up test-child-process-exec-cwd.js
- Changed `assert.ok()` to `assert.strictEqual()`. - Changed `var` to `const` where possible. PR-URL: #9231 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ilkka Myller <[email protected]>
1 parent 89eb175 commit 8d985c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-child-process-exec-cwd.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const common = require('../common');
3-
var assert = require('assert');
4-
var exec = require('child_process').exec;
3+
const assert = require('assert');
4+
const exec = require('child_process').exec;
55

66
var pwdcommand, dir;
77

@@ -15,5 +15,5 @@ if (common.isWindows) {
1515

1616
exec(pwdcommand, {cwd: dir}, common.mustCall(function(err, stdout, stderr) {
1717
assert.ifError(err);
18-
assert.ok(stdout.indexOf(dir) == 0);
18+
assert.strictEqual(stdout.indexOf(dir), 0);
1919
}));

0 commit comments

Comments
 (0)