☕️ Classic, reliable, trusted test framework for Node.js and the browser
misc refactoring
Tj Holowaychuk4cb5d47ced1e
diff --git a/lib/reporters/html.js b/lib/reporters/html.jsindex 6fb9066a..e74b1dd1 100644--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@ -106,8 +106,7 @@ function HTML(runner) {// check for the result of the stringifying.if ('[object Error]' == str) str = test.err.message;- var err = $('<pre class="error">' + escape(str) + '</pre>');- el.append(err);+ $('<pre class="error">' + escape(str) + '</pre>').appendTo(el);}// toggle code