tap-mocha-reporter
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -134,4 +134,7 @@ exports = module.exports = Classic | ||
// If they are not strings, or only differ in trailing whitespace, | ||
// then stringify them so that we can see the difference. | ||
if (typeof found !== 'string' || | ||
typeof wanted !== 'string') { | ||
typeof wanted !== 'string' || | ||
found.trim() === wanted.trim()) { | ||
found = utils.stringify(found) | ||
@@ -249,6 +252,6 @@ wanted = utils.stringify(wanted) | ||
dots = ' ' + new Array(dots).join('.') + ' ' | ||
if (pass === total) | ||
if (fails.length) | ||
num = Base.color('fail', num) | ||
else if (pass === total) | ||
num = Base.color('checkmark', num) | ||
else if (fails.length) | ||
num = Base.color('fail', num) | ||
else | ||
@@ -266,2 +269,4 @@ num = Base.color('pending', num) | ||
fails.forEach(function (t) { | ||
if (t.parent) | ||
failMsg += t.parent + '\n' | ||
failMsg += Base.color('fail', 'not ok ' + t.name) + '\n' | ||
@@ -354,2 +359,12 @@ if (t.diag) { | ||
else if (!t.ok) { | ||
t.parent = [] | ||
var p = test.parent | ||
while (p && p !== currentSuite) { | ||
var n = p.title || p.name || p.fullTitle() | ||
if (n) | ||
t.parent.unshift(n) | ||
p = p.parent | ||
} | ||
t.parent.shift() | ||
t.parent = t.parent.join(' > ') | ||
fails.push(t) | ||
@@ -356,0 +371,0 @@ hadFails = true |
{ | ||
"name": "tap-mocha-reporter", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Format a TAP stream using Mocha's set of reporters", | ||
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
117496
3570