Skip to content

Commit

Permalink
Fixed suite count in reporter stats. Closes mochajs#222
Browse files Browse the repository at this point in the history
the "root" suite doesnt really count
  • Loading branch information
tj committed Jan 18, 2012
1 parent 7922ea7 commit 023a554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Expand Up @@ -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){
Expand Down

0 comments on commit 023a554

Please sign in to comment.