blob: 5ee46e71c475c45ffac4a4cb0982645c05354c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
var assert = require('assert');
var child_process = require('child_process');
var path = require('path');
describe('Mocha', function() {
this.timeout(2000);
it('should not output colors to pipe', function(cb) {
var command = [path.join('bin', 'mocha'), '--grep', 'missing-test'];
child_process.execFile(process.execPath, command, function(err, stdout, stderr) {
if (err) return cb(err);
assert(stdout.indexOf('[90m') === -1);
cb(null);
});
});
});
|