☕️ Classic, reliable, trusted test framework for Node.js and the browser
Removed usage for Array#reduce
Guillermo Rauch7c7d0ec984e7
diff --git a/lib/suite.js b/lib/suite.jsindex 667ee3e6..88fbca09 100644--- a/lib/suite.js+++ b/lib/suite.js@@ -5,6 +5,7 @@var EventEmitter = require('events').EventEmitter, debug = require('debug')('suite')+ , utils = require('./utils'), Hook = require('./hook');/**@@ -213,7 +214,7 @@ Suite.prototype.fullTitle = function(){*/Suite.prototype.total = function(){- return this.suites.reduce(function(sum, suite){+ return utils.reduce(this.suites, function(sum, suite){return sum + suite.total();}, 0) + this.tests.length;};