Skip to content

Commit

Permalink
test: update test/parallel/test-eval.js
Browse files Browse the repository at this point in the history
Changed var -> const and assert.equal -> assert.strictEqual

PR-URL: #8590
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
wzoom authored and jasnell committed Sep 29, 2016
1 parent 7dc7412 commit 5dd98c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-eval.js
Original file line number Diff line number Diff line change
@@ -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);
}));

0 comments on commit 5dd98c6

Please sign in to comment.