Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 55dea25

Browse files
Volker Buzekboneskull
Volker Buzek
authored andcommitted
fix XUnit reporter output. Closes mochajs#2584
1 parent cbd0873 commit 55dea25

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)