tap-parser
Advanced tools
Comparing version 2.2.2 to 2.2.3
16
index.js
@@ -83,4 +83,16 @@ // Transforms a stream of TAP into a stream of result objects | ||
name += rest ? '#' + rest : '' | ||
else | ||
this[dir[0]] = dir[1] | ||
else { | ||
// handle buffered subtests with todo/skip on them, like | ||
// ok 1 - bar # todo foo {\n | ||
var dirKey = dir[0] | ||
var dirValue = dir[1] | ||
if (typeof dirValue === 'string' && dirValue.slice(-1) === '{') { | ||
name += ' {' | ||
dirValue = dirValue.slice(0, -1).trim() | ||
if (!dirValue) { | ||
dirValue = true | ||
} | ||
} | ||
this[dirKey] = dirValue | ||
} | ||
@@ -87,0 +99,0 @@ if (name) |
{ | ||
"name": "tap-parser", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"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
30274
725