[Pkg-javascript-commits] [node-tap-mocha-reporter] 108/137: don't show NaNms in list output

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.

commit 4831cea1418cbb2aaecd4c3aff240687dd01eeee
Author: isaacs <i at izs.me>
Date:   Sun Jun 18 06:47:40 2017 -0700

    don't show NaNms in list output
---
 lib/reporters/list.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/reporters/list.js b/lib/reporters/list.js
index f64367a..e5f4ccb 100644
--- a/lib/reporters/list.js
+++ b/lib/reporters/list.js
@@ -42,10 +42,10 @@ function List(runner) {
 
   runner.on('pass', function(test){
     var fmt = color('checkmark', '  '+Base.symbols.dot)
-      + color('pass', ' %s: ')
-      + color(test.speed, '%dms');
+      + color('pass', ' %s')
+      + (test.duration ? color('pass', ': ') + color(test.speed, '%dms') : '');
     cursor.CR();
-    console.log(fmt, test.fullTitle(), test.duration);
+    console.log(fmt, test.fullTitle(), test.duration || '');
   });
 
   runner.on('fail', function(test, err){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git



More information about the Pkg-javascript-commits mailing list