tap-mocha-reporter
Advanced tools
Comparing version 0.0.27 to 2.0.0
@@ -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 @@ }, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
110079
48
0
3254
+ Addedtap-parser@2.2.3(transitive)
- Removedtap-parser@1.3.2(transitive)
Updatedtap-parser@^2.0.0