[Pkg-javascript-commits] [node-tap-mocha-reporter] 48/137: runner: only set stats if tracking stats
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:49:25 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 47564f0192894f676de5d12d69281d0a9b7c1c19
Author: isaacs <i at izs.me>
Date: Sat May 2 10:03:20 2015 -0700
runner: only set stats if tracking stats
---
lib/runner.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/runner.js b/lib/runner.js
index 2aa9752..836570a 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -103,7 +103,8 @@ function attachEvents (runner, parser, level) {
if (tmatch[2] === 's')
t *= 1000
parser.time = t
- runner.stats.duration = t
+ if (runner.stats)
+ runner.stats.duration = t
}
})
}
--
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