Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tap-mocha-reporter

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-mocha-reporter - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

23

lib/reporters/classic.js

@@ -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

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc