tap-parser
Advanced tools
Comparing version 3.0.1 to 3.0.2
16
index.js
@@ -118,3 +118,2 @@ // Transforms a stream of TAP into a stream of result objects | ||
this.parent = options.parent || null | ||
this.sawValidTap = false | ||
this.failures = [] | ||
@@ -178,3 +177,2 @@ this.level = options.level || 0 | ||
this.sawValidTap = true | ||
if (res.id) { | ||
@@ -220,3 +218,2 @@ if (!this.first || res.id < this.first) | ||
this.sawValidTap = true | ||
this.emitResult() | ||
@@ -341,4 +338,3 @@ | ||
this.emit('line', '1..0\n') | ||
this.planStart = 1 | ||
this.planEnd = 0 | ||
this.plan(1, 0, '', '1..0\n') | ||
skipAll = true | ||
@@ -387,9 +383,2 @@ } else { | ||
// We didn't get any actual tap, so just treat this like a | ||
// 1..0 test, because it was probably just console.log junk | ||
if (!this.sawValidTap) { | ||
final.plan = { start: 1, end: 0 } | ||
final.ok = true | ||
} | ||
if (this.failures.length) { | ||
@@ -431,3 +420,2 @@ final.failures = this.failures | ||
Parser.prototype.bailout = function (reason) { | ||
this.sawValidTap = true | ||
this.emitResult() | ||
@@ -514,3 +502,3 @@ this.bailedOut = reason || true | ||
this.child.on('complete', function (results) { | ||
if (this.sawValidTap && !results.ok) | ||
if (!results.ok) | ||
self.ok = false | ||
@@ -517,0 +505,0 @@ }) |
{ | ||
"name": "tap-parser", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "parse the test anything protocol", | ||
@@ -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
30076
721