☕️ Classic, reliable, trusted test framework for Node.js and the browser
update stats
Tj Holowaychuk8e1078bbf9d4
diff --git a/lib/reporters/html.js b/lib/reporters/html.jsindex ed7c9084..cc968d01 100644--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@ -65,7 +65,10 @@ function HTML(runner) {});runner.on('test end', function(test){- console.log(stats);+ // update stats+ stat.find('.passes em').text(stats.passes);+ stat.find('.failures em').text(stats.failures);+// testvar str = test.passed ? 'pass' : 'fail';var el = o('<div class="test ' + str + '"><h2>' + test.title + '</h2></div>')diff --git a/mocha.js b/mocha.jsindex ab549a27..9d984339 100644--- a/mocha.js+++ b/mocha.js@@ -806,7 +806,10 @@ function HTML(runner) {});runner.on('test end', function(test){- console.log(stats);+ // update stats+ stat.find('.passes em').text(stats.passes);+ stat.find('.failures em').text(stats.failures);+// testvar str = test.passed ? 'pass' : 'fail';var el = o('<div class="test ' + str + '"><h2>' + test.title + '</h2></div>')