blob: 1fbdfbf8e45b4da7ffe3147ec7f5a13729de69e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
'use strict';
// Refs: https://github.com/nodejs/node/issues/7342
const common = require('../common');
const assert = require('assert');
const exec = require('child_process').exec;
const command = common.isWindows ? 'dir' : 'ls';
exec(command).stdout.on('data', common.mustCallAtLeast());
exec('fhqwhgads').stderr.on('data', common.mustCallAtLeast((data) => {
assert.strictEqual(typeof data, 'string');
}));
|