Skip to content

Commit

Permalink
fix XUnit reporter output. Closes mochajs#2584
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker Buzek committed Nov 17, 2016
1 parent 1d52fd3 commit c3c3eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/xunit.js
Expand Up @@ -43,7 +43,7 @@ function XUnit (runner, options) {
var tests = [];
var self = this;

if (options.reporterOptions && options.reporterOptions.output) {
if (options && options.reporterOptions && options.reporterOptions.output) {
if (!fs.createWriteStream) {
throw new Error('file output not supported in browser');
}
Expand Down

0 comments on commit c3c3eb7

Please sign in to comment.