From 53520f06f315978946d796e54983598cddea0e20 Mon Sep 17 00:00:00 2001 From: Jeena Lee Date: Fri, 21 Oct 2016 15:49:35 -0700 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Ilkka Myller --- test/parallel/test-child-process-exec-cwd.js | 6 +++--- 1 file 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 b1a24aca761458..3b6e428a4aca65 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); }));