[Pkg-javascript-commits] [node-tap-mocha-reporter] 31/137: Don't try to get the title of undefined

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 e1239489c3a7e4a0b3f2af571331e775e1769207
Author: isaacs <i at izs.me>
Date:   Sun Apr 26 11:44:25 2015 -0700

    Don't try to get the title of undefined
---
 lib/reporters/classic.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/reporters/classic.js b/lib/reporters/classic.js
index 3babbec..282780e 100644
--- a/lib/reporters/classic.js
+++ b/lib/reporters/classic.js
@@ -155,7 +155,7 @@ function Classic (runner) {
     total ++
     grandTotal ++
     var t = test.result
-    if (fancy) {
+    if (fancy && currentSuite) {
       var max = 57 - currentSuite.title.length
       if (max < 3)
         max = 3

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