☕️ Classic, reliable, trusted test framework for Node.js and the browser
Refactor literal play-icon hex code to a var
David da Silva861e968b5166
diff --git a/lib/reporters/html.js b/lib/reporters/html.jsindex 3e755d2d..e29aa36a 100644--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@ -41,6 +41,8 @@ var statsTemplate = '<ul id="mocha-stats">' +'<li class="duration">duration: <em>0</em>s</li>' +'</ul>';+var playIcon = '‣';+/*** Initialize a new `HTML` reporter.*@@ -136,7 +138,7 @@ function HTML (runner) {runner.on('pass', function (test) {var url = self.testURL(test);var markup = '<li class="test pass %e"><h2>%e<span class="duration">%ems</span> ' +- '<a href="%s" class="replay">‣</a></h2></li>';+ '<a href="%s" class="replay">' + playIcon + '</a></h2></li>';var el = fragment(markup, test.speed, test.title, test.duration, url);self.addCodeToggle(el, test.body);appendToStack(el);@@ -144,7 +146,7 @@ function HTML (runner) {});runner.on('fail', function (test) {- var el = fragment('<li class="test fail"><h2>%e <a href="%e" class="replay">‣</a></h2></li>',+ var el = fragment('<li class="test fail"><h2>%e <a href="%e" class="replay">' + playIcon + '</a></h2></li>',test.title, self.testURL(test));var stackString; // Note: Includes leading newlinevar message = test.err.toString();