karma-spec-reporter
Advanced tools
Comparing version 0.0.10 to 0.0.11
10
index.js
@@ -56,4 +56,10 @@ require('colors'); | ||
//TODO: add timing information | ||
var msg = indent + status + specName, specName | ||
if(this.USE_COLORS) { | ||
if(result.skipped) specName = specName.cyan; | ||
else if(!result.success) specName = specName.red; | ||
} | ||
var msg = indent + status + specName; | ||
result.log.forEach(function(log) { | ||
@@ -88,3 +94,3 @@ msg += formatError(log, '\t'); | ||
this.specSuccess = reporterCfg.suppressPassed ? noop : this.writeSpecMessage(this.USE_COLORS ? '✓ '.green : '✓ '); | ||
this.specSkipped = reporterCfg.suppressSkipped ? noop : this.writeSpecMessage(this.USE_COLORS ? '- '.grey : '- '); | ||
this.specSkipped = reporterCfg.suppressSkipped ? noop : this.writeSpecMessage(this.USE_COLORS ? '- '.cyan : '- '); | ||
this.specFailure = reporterCfg.suppressFailed ? noop : this.writeSpecMessage(this.USE_COLORS ? '✗ '.red : '✗ '); | ||
@@ -91,0 +97,0 @@ }; |
{ | ||
"name": "karma-spec-reporter", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A Karma plugin. Report all spec-results to console (like mocha's spec reporter).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4193
84