tap-parser
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -568,3 +568,3 @@ // Transforms a stream of TAP into a stream of result objects | ||
var maybeBuffered = this.current && this.current.buffered | ||
var unindentStream = !maybeBuffered && this.maybeChild | ||
var unindentStream = !maybeBuffered && this.maybeChild | ||
var indentStream = !maybeBuffered && !unindentStream && | ||
@@ -574,5 +574,2 @@ lineTypes.subtestIndent.test(line) | ||
if (indentStream) | ||
this.emit('line', line) | ||
// If we have any other result waiting in the wings, we need to emit | ||
@@ -633,5 +630,5 @@ // that now. A buffered test emits its test point at the *end* of | ||
// this.emit('comment', subtestComment) | ||
this.emit('child', this.child) | ||
if (!this.child.buffered) | ||
this.emit('line', subtestComment) | ||
this.emit('child', this.child) | ||
this.child.emitComment(subtestComment, true) | ||
@@ -638,0 +635,0 @@ if (line) |
{ | ||
"name": "tap-parser", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "parse the test anything protocol", | ||
@@ -20,3 +20,5 @@ "main": "index.js", | ||
"regen-fixtures": "node scripts/generate-test.js test/fixtures/*.tap", | ||
"preversion": "npm test" | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"postpublish": "git push origin --all; git push origin --tags" | ||
}, | ||
@@ -23,0 +25,0 @@ "testling": { |
40504
931