[Pkg-javascript-commits] [node-tap-mocha-reporter] 23/137: base: add 'skip' color, handle color support better
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 e9938f00784774cfffe10e5a88272b282dd6318a
Author: isaacs <i at izs.me>
Date: Sun Apr 26 10:10:58 2015 -0700
base: add 'skip' color, handle color support better
---
lib/reporters/base.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index a1429ef..f303650 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -35,9 +35,12 @@ exports = module.exports = Base;
*/
exports.useColors = process.env
- ? (supportsColor || (process.env.MOCHA_COLORS !== undefined))
+ ? (supportsColor || (process.env.TAP_COLORS !== undefined))
: false;
+if (exports.useColors && process.env.TAP_COLORS === '0')
+ exports.useColors = false
+
/**
* Inline diffs instead of +/-
*/
@@ -54,7 +57,8 @@ exports.colors = {
, 'bright pass': 92
, 'bright fail': 91
, 'bright yellow': 93
- , 'pending': 36
+ , 'pending': 35
+ , 'skip': 36
, 'suite': 0
, 'error title': 0
, 'error message': 31
@@ -312,10 +316,7 @@ Base.prototype.epilogue = function(){
console.log(fmt, stats.failures);
Base.list(this.failures);
- console.log();
}
-
- console.log();
};
/**
--
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