Only redirect output to browser when running in CI.

This commit is contained in:
Cheng Zhao 2013-08-25 20:54:15 +08:00
parent 0f6617ec26
commit 15ba32b489

View file

@ -25,9 +25,10 @@
}
require('coffee-script'); // Supports .coffee tests.
var ipc = require('ipc');
// Rediret all output to browser.
var ipc = require('ipc');
if (isCi) {
global.__defineGetter__('console', function() {
return {
log: function() {
@ -40,6 +41,7 @@
},
}
});
}
var Mocha = require('mocha');