Comparing version 0.1.7 to 0.1.8
@@ -13,2 +13,3 @@ #!/usr/bin/env node | ||
var errors = []; | ||
var res; | ||
@@ -43,3 +44,4 @@ out.push('\n'); | ||
tap.on('results', function (res) { | ||
tap.on('results', function (_res) { | ||
res = _res | ||
if (errors.length) { | ||
@@ -66,5 +68,5 @@ var past = (errors.length == 1) ? 'was' : 'were'; | ||
process.on('exit', function () { | ||
if (errors.length) { | ||
if (errors.length || !res.ok) { | ||
process.exit(1); | ||
} | ||
}); |
{ | ||
"name": "tap-spec", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Formatted TAP output like Mocha's spec reporter", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
2977
54