tap-parser
Advanced tools
Comparing version 1.1.5 to 1.1.6
12
index.js
@@ -343,5 +343,13 @@ // Transforms a stream of TAP into a stream of result objects | ||
// ignore empty lines | ||
if (line === '\n') | ||
// ignore empty lines, except if they are (or could be) part of yaml | ||
// >\nfoo\n\nbar\n is yaml for `"foo\nbar"` | ||
// >\nfoo\nbar\n is yaml for `"foo bar"` | ||
if (line === '\n' || line.trim() === '') { | ||
if (this.child) { | ||
this.child.write('\n') | ||
} else if (this.yind) { | ||
this.yamlish += '\n' | ||
} | ||
return | ||
} | ||
@@ -348,0 +356,0 @@ // After a bailout, everything is ignored |
{ | ||
"name": "tap-parser", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,7 +34,5 @@ module.exports = | ||
[ 'line', ' ok 1 Should output debugger message\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', ' 1..1\n' ], | ||
[ 'line', ' # tests 1\n' ], | ||
[ 'line', ' # pass 1\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', ' # ok\n' ], | ||
@@ -41,0 +39,0 @@ [ 'line', 'ok 1 - test/debug-test.js # time=537.383ms\n' ], |
@@ -66,5 +66,3 @@ module.exports = | ||
' var package = require(\'package\')(); // contains package.json data.\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', ' var yourAwesomeModule = {};\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', | ||
@@ -169,5 +167,3 @@ ' yourAwesomeModule.version = package.version;\n' ], | ||
' var package = require(\'package\')(); // contains package.json data.\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', ' var yourAwesomeModule = {};\n' ], | ||
[ 'line', ' \n' ], | ||
[ 'line', | ||
@@ -174,0 +170,0 @@ ' yourAwesomeModule.version = package.version;\n' ], |
Sorry, the diff of this file is not supported yet
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
258911
87
5339