diff --git a/lib/MultiReporters.js b/lib/MultiReporters.js index 2f49c2b..3cb3c8d 100644 --- a/lib/MultiReporters.js +++ b/lib/MultiReporters.js @@ -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);