mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
a7335bd1f0
In preparation for a lint rule that will enforce assert.deepStrictEqual() over assert.deepEqual(), change tests and benchmarks accordingly. For tests and benchmarks that are testing or benchmarking assert.deepEqual() itself, apply a comment to ignore the upcoming rule. PR-URL: https://github.com/nodejs/node/pull/6213 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
20 lines
481 B
JavaScript
20 lines
481 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
var options = {stdio: ['pipe']};
|
|
var child = common.spawnPwd(options);
|
|
|
|
assert.notEqual(child.stdout, null);
|
|
assert.notEqual(child.stderr, null);
|
|
|
|
options = {stdio: 'ignore'};
|
|
child = common.spawnPwd(options);
|
|
|
|
assert.equal(child.stdout, null);
|
|
assert.equal(child.stderr, null);
|
|
|
|
options = {stdio: 'ignore'};
|
|
child = common.spawnSyncCat(options);
|
|
assert.deepStrictEqual(options, {stdio: 'ignore'});
|