Socket
Socket
Sign inDemoInstall

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.27 to 2.0.0

r.txt

19

lib/runner.js

@@ -123,4 +123,3 @@ // A facade from the tap-parser to the Mocha "Runner" object.

parser.didAssert = false
parser.printed = false
parser.name = ''
parser.name = parser.name || ''
parser.doingChild = null

@@ -153,3 +152,2 @@

parser.on('child', function (child) {
//console.log('>>> child')
child.parent = parser

@@ -168,8 +166,10 @@ attachEvents(runner, child, level + 1)

parser.on('comment', function (c) {
if (!this.printed && c.match(/^# Subtest: /)) {
c = c.trim().replace(/^# Subtest: /, '')
this.name = c
}
})
if (!parser.name) {
parser.on('comment', function (c) {
if (!this.name && c.match(/^# Subtest: /)) {
c = c.trim().replace(/^# Subtest: /, '')
this.name = c
}
})
}

@@ -260,3 +260,2 @@ // Just dump all non-parsing stuff to stderr

function emitSuite (parser) {
//console.log('emitSuite', parser.emittedSuite, parser.level, parser.name)
if (!parser.emittedSuite && parser.name) {

@@ -263,0 +262,0 @@ parser.emittedSuite = true

{
"name": "tap-mocha-reporter",
"version": "0.0.27",
"version": "2.0.0",
"description": "Format a TAP stream using Mocha's set of reporters",

@@ -26,3 +26,3 @@ "main": "index.js",

"js-yaml": "^3.3.1",
"tap-parser": "^1.0.4",
"tap-parser": "^2.0.0",
"unicode-length": "^1.0.0"

@@ -29,0 +29,0 @@ },

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