From 1dc3c9a24dc63d1314aa5c7148c19ce259d13cf9 Mon Sep 17 00:00:00 2001 From: KyeongKoo Kang Date: Fri, 17 May 2019 17:06:56 -0700 Subject: [PATCH] Check reporter --- lib/MultiReporters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MultiReporters.js b/lib/MultiReporters.js index f33a55a..16e7f34 100644 --- a/lib/MultiReporters.js +++ b/lib/MultiReporters.js @@ -88,7 +88,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);