mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 07:27:32 +00:00

Changed var -> const and assert.equal -> assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/8590 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
14 lines
477 B
JavaScript
14 lines
477 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const util = require('util');
|
|
const assert = require('assert');
|
|
const exec = require('child_process').exec;
|
|
|
|
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.strictEqual(stderr, expected);
|
|
}));
|