Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fixed suite count in reporter stats. Closes #222

TJ Holowaychuk023a554e5cde
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 6ab03bad..ba04e35c 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -167,7 +167,7 @@ function Base(runner) {
runner.on('suite', function(suite){
stats.suites = stats.suites || 0;
- stats.suites++;
+ suite.root || stats.suites++;
});
runner.on('test end', function(test){