Skip to content

Commit

Permalink
make lib/stats-collector a private API
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Dec 13, 2018
1 parent 0ed25c6 commit 6160a6a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lib/stats-collector.js
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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,
Expand Down

0 comments on commit 6160a6a

Please sign in to comment.