[Pkg-javascript-commits] [node-tap-mocha-reporter] 40/137: Emit 'line' event from parser on runner

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:24 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 d28998596897bd992987a093bb56f825a338a79e
Author: isaacs <i at izs.me>
Date:   Wed Apr 29 15:48:27 2015 -0400

    Emit 'line' event from parser on runner
---
 lib/runner.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/runner.js b/lib/runner.js
index d056bed..6605e86 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -87,6 +87,9 @@ function attachEvents (runner, parser, level) {
   parser.runner = runner
 
   if (level === 0) {
+    parser.on('line', function (c) {
+      runner.emit('line', c)
+    })
     parser.on('version', function (v) {
       runner.emit('version', v)
     })

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