☕️ Classic, reliable, trusted test framework for Node.js and the browser
make lib/stats-collector a private API
Christopher Hiller6160a6a28f29
diff --git a/lib/stats-collector.js b/lib/stats-collector.jsindex 1c1491ca..0afa10f1 100644--- a/lib/stats-collector.js+++ b/lib/stats-collector.js@@ -1,8 +1,15 @@'use strict';+/**+ * Provides a factory function for a {@link StatsCollector} object.+ * @private+ * @module+ */+/*** Test statistics collector.*+ * @private* @typedef {Object} StatsCollector* @property {number} suites - integer count of suites run.* @property {number} tests - integer count of tests run.@@ -15,14 +22,16 @@*//**- * Provides stats such as test duration,- * number of tests passed / failed etc.+ * Provides stats such as test duration, number of tests passed / failed etc., by listening for events emitted by `runner`.*- * @public- * @memberof Mocha- * @param {Runner} runner+ * @private+ * @param {Runner} runner - Runner instance+ * @throws {TypeError} If falsy `runner`*/function createStatsCollector(runner) {+ /**+ * @type StatsCollector+ */var stats = {suites: 0,tests: 0,