Skip to content

Commit edde033

Browse files
Volker Buzekboneskull
Volker Buzek
authored andcommitted
fix XUnit reporter output. Closes #2584
1 parent f5bef7c commit edde033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reporters/xunit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function XUnit (runner, options) {
4343
var tests = [];
4444
var self = this;
4545

46-
if (options.reporterOptions && options.reporterOptions.output) {
46+
if (options && options.reporterOptions && options.reporterOptions.output) {
4747
if (!fs.createWriteStream) {
4848
throw new Error('file output not supported in browser');
4949
}

0 commit comments

Comments
 (0)