[Pkg-javascript-commits] [node-tap-mocha-reporter] 29/137: Propertly handle TAP_COLORS being set to numeric 0
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 671f0877570ca0f682c9adbecb47c7de601746f2
Author: isaacs <i at izs.me>
Date: Sun Apr 26 10:42:07 2015 -0700
Propertly handle TAP_COLORS being set to numeric 0
---
lib/reporters/base.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index f303650..0a140ae 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -38,7 +38,7 @@ exports.useColors = process.env
? (supportsColor || (process.env.TAP_COLORS !== undefined))
: false;
-if (exports.useColors && process.env.TAP_COLORS === '0')
+if (exports.useColors && +process.env.TAP_COLORS === 0)
exports.useColors = false
/**
--
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