tap-parser
Advanced tools
Comparing version 5.1.3 to 5.1.4
10
index.js
@@ -214,8 +214,9 @@ // Transforms a stream of TAP into a stream of result objects | ||
if (this.strict) { | ||
this.tapError({ | ||
var err = { | ||
tapError: 'Non-TAP data encountered in strict mode', | ||
data: data | ||
}) | ||
} | ||
this.tapError(err) | ||
if (this.parent) | ||
this.parent.nonTap(data) | ||
this.parent.tapError(err) | ||
} | ||
@@ -394,5 +395,4 @@ | ||
} else if (!this.bailedOut && this.planStart === -1) { | ||
if (this.count === 0) { | ||
if (this.count === 0 && !this.syntheticPlan) { | ||
this.syntheticPlan = true | ||
this.emit('line', '1..0 # no tests found\n') | ||
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n') | ||
@@ -399,0 +399,0 @@ skipAll = true |
{ | ||
"name": "tap-parser", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
40495