From 861e968b516613a9f1d964668660450b446750dc Mon Sep 17 00:00:00 2001 From: David da Silva Date: Thu, 20 Apr 2017 18:21:26 +0200 Subject: [PATCH] Refactor literal play-icon hex code to a var --- lib/reporters/html.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/reporters/html.js b/lib/reporters/html.js index 3e755d2d63..e29aa36a5a 100644 --- a/lib/reporters/html.js +++ b/lib/reporters/html.js @@ -41,6 +41,8 @@ var statsTemplate = ''; +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 = '
  • %e%ems ' + - '

  • '; + '' + playIcon + ''; 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('
  • %e

  • ', + var el = fragment('
  • %e ' + playIcon + '

  • ', test.title, self.testURL(test)); var stackString; // Note: Includes leading newline var message = test.err.toString();