Skip to content

Commit

Permalink
test: clean up test-child-process-exec-cwd.js
Browse files Browse the repository at this point in the history
- Changed `assert.ok()` to `assert.strictEqual()`.
- Changed `var` to `const` where possible.

PR-URL: nodejs#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>
  • Loading branch information
jeenalee authored and Trott committed Oct 26, 2016
1 parent ed41d8d commit 2d472a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-child-process-exec-cwd.js
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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);
}));

0 comments on commit 2d472a3

Please sign in to comment.