Skip to content

Commit

Permalink
Alter feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyreeves committed Dec 25, 2015
1 parent c66bc83 commit 3134ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/xunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ XUnit.prototype.done = function(failures, fn) {
XUnit.prototype.write = function(line) {
if (this.fileStream) {
this.fileStream.write(line + '\n');
} else if (typeof process === 'object' && typeof process.stdout === 'object') {
} else if (typeof process === 'object' && process.stdout) {
process.stdout.write(line + '\n');
} else {
console.log(line);
Expand Down

0 comments on commit 3134ea4

Please sign in to comment.