Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
kmiyashiro committed Dec 1, 2015
1 parent ac058f8 commit 3bd773a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tasks/mocha.js
Expand Up @@ -179,16 +179,11 @@ module.exports = function(grunt) {
var dest = this.data.dest;
var output = [];
var consoleLog = console.log;
// Latest mocha xunit reporter sends to process.stdout instead of console
var processWrite = process.stdout.write;


// Only hijack if we really need to
if (dest) {
console.log = function() {
consoleLog.apply(console, arguments);
// FIXME: This breaks older versions of mocha
// processWrite.apply(process.stdout, arguments);
output.push(util.format.apply(util, arguments));
};
}
Expand Down

0 comments on commit 3bd773a

Please sign in to comment.