From 15a3b7d0399321caeaf5f00310075add66d854d7 Mon Sep 17 00:00:00 2001 From: Ben Hutchison Date: Wed, 23 Nov 2016 22:11:17 -0800 Subject: [PATCH] Revert test pass symbol in List reporter When the reporter symbols were abstracted into the Base module (bec7a6e1686cf1f4c26ef6c2ba25eda36ccdd6c5), the List reporter was accidentally changed to show a dot when a test passes, instead of a checkmark like it used to. The old, correct behavior is also shown on the homepage: https://mochajs.org/#list. --- lib/reporters/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/list.js b/lib/reporters/list.js index 2e54314e91..a562cdb94c 100644 --- a/lib/reporters/list.js +++ b/lib/reporters/list.js @@ -42,7 +42,7 @@ function List (runner) { }); runner.on('pass', function (test) { - var fmt = color('checkmark', ' ' + Base.symbols.dot) + + var fmt = color('checkmark', ' ' + Base.symbols.ok) + color('pass', ' %s: ') + color(test.speed, '%dms'); cursor.CR();