Skip to content

armgit / mocha

Public Imported from GitHub
0

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

added .test class back

Tj Holowaychuk3d56c29e4639
diff --git a/lib/reporters/html.js b/lib/reporters/html.js
index 2da81c24..ed7c9084 100644
--- a/lib/reporters/html.js
+++ b/lib/reporters/html.js
@@ -68,7 +68,7 @@ function HTML(runner) {
console.log(stats);
// test
var str = test.passed ? 'pass' : 'fail';
- var el = o('<div class="' + str + '"><h2>' + test.title + '</h2></div>')
+ var el = o('<div class="test ' + str + '"><h2>' + test.title + '</h2></div>')
// code
var pre = o('<pre><code>' + clean(test.fn.toString()) + '</code></pre>');
diff --git a/mocha.js b/mocha.js
index 6a616934..ab549a27 100644
--- a/mocha.js
+++ b/mocha.js
@@ -809,7 +809,7 @@ function HTML(runner) {
console.log(stats);
// test
var str = test.passed ? 'pass' : 'fail';
- var el = o('<div class="' + str + '"><h2>' + test.title + '</h2></div>')
+ var el = o('<div class="test ' + str + '"><h2>' + test.title + '</h2></div>')
// code
var pre = o('<pre><code>' + clean(test.fn.toString()) + '</code></pre>');