[Pkg-javascript-commits] [node-tap-mocha-reporter] 09/137: dump better in the dump reporter

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:21 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 9007189b7660786422b0cf0d446db81b51e77f09
Author: isaacs <i at izs.me>
Date:   Sat Apr 25 11:02:17 2015 -0700

    dump better in the dump reporter
---
 lib/reporters/dump.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/reporters/dump.js b/lib/reporters/dump.js
index 2b19aed..1ea19cf 100644
--- a/lib/reporters/dump.js
+++ b/lib/reporters/dump.js
@@ -28,8 +28,12 @@ function Dump(runner) {
 
   events.forEach(function (ev) {
     runner.on(ev, function () {
-      var args = [].concat.apply([ev], arguments)
-      console.log.apply(console, args)
+      console.log(ev)
+      if (arguments.length) {
+        var args = [].concat.apply([], arguments)
+        console.log.apply(console, args)
+        console.log()
+      }
     })
   })
 }

-- 
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