From fef4341f468620b7b9dca773230eec3167acce94 Mon Sep 17 00:00:00 2001 From: Pavol Otcenas Date: Sat, 17 Sep 2016 11:16:03 +0200 Subject: [PATCH] test: update test/parallel/test-eval.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed var -> const and assert.equal -> assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/8590 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- test/parallel/test-eval.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/parallel/test-eval.js b/test/parallel/test-eval.js index 98514af5be40be..b27aa33d84275c 100644 --- a/test/parallel/test-eval.js +++ b/test/parallel/test-eval.js @@ -1,13 +1,13 @@ 'use strict'; const common = require('../common'); -var util = require('util'); -var assert = require('assert'); -var exec = require('child_process').exec; +const util = require('util'); +const assert = require('assert'); +const exec = require('child_process').exec; -var cmd = ['"' + process.execPath + '"', '-e', '"console.error(process.argv)"', - 'foo', 'bar'].join(' '); -var expected = util.format([process.execPath, 'foo', 'bar']) + '\n'; +const cmd = ['"' + process.execPath + '"', '-e', + '"console.error(process.argv)"', 'foo', 'bar'].join(' '); +const expected = util.format([process.execPath, 'foo', 'bar']) + '\n'; exec(cmd, common.mustCall(function(err, stdout, stderr) { assert.ifError(err); - assert.equal(stderr, expected); + assert.strictEqual(stderr, expected); }));