Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Check reporter (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F authored Jun 7, 2019
1 parent a599a7c commit f7bb95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MultiReporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ MultiReporters.prototype.done = function (failures, fn) {
}

var reportersWithDoneHandler = this._reporters.filter(function (reporter) {
return typeof reporter.done === 'function';
return reporter && (typeof reporter.done === 'function');
});

var numberOfReportersWithDoneHandler = _.size(reportersWithDoneHandler);
Expand Down

0 comments on commit f7bb95a

Please sign in to comment.