[Pkg-javascript-commits] [node-tap-mocha-reporter] 25/137: Handle bailouts

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:23 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 d3a5d51b55b1e5ef906773065ec74f784dd0c9c1
Author: isaacs <i at izs.me>
Date:   Sun Apr 26 10:11:49 2015 -0700

    Handle bailouts
---
 lib/runner.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/runner.js b/lib/runner.js
index 8ee1054..d65b638 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -155,6 +155,13 @@ function attachEvents (runner, parser, level) {
       runner.emit('suite end', this.suite)
   })
 
+  parser.on('bailout', function (reason) {
+    var suite = this.suite
+    runner.emit('bailout', reason, suite)
+    if (suite)
+      this.suite = suite.parent
+  })
+
   // proxy all stream events directly
   var streamEvents = [
     'pipe', 'prefinish', 'finish', 'unpipe', 'close'

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