Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fix pre display style toggle to match that in the CSS

Austin Birch808bd5f35a26
diff --git a/lib/reporters/html.js b/lib/reporters/html.js
index 113a356a..9f799da0 100644
--- a/lib/reporters/html.js
+++ b/lib/reporters/html.js
@@ -138,7 +138,7 @@ function HTML(runner) {
on(h2, 'click', function(){
pre.style.display = 'none' == pre.style.display
- ? 'block'
+ ? 'inline-block'
: 'none';
});
@@ -203,4 +203,4 @@ function on(el, event, fn) {
} else {
el.attachEvent('on' + event, fn);
}
-}
\ No newline at end of file
+}