Comparing version 0.0.1 to 0.1.1
@@ -19,2 +19,12 @@ #!/usr/bin/env node | ||
if (/^tests [1-9]$/gi.test(comment)) comment = chalk.bold(comment); | ||
else if (/^pass [1-9]$/gi.test(comment)) comment = chalk.bold(comment); | ||
else if (/^ok$/gi.test(comment)) return; | ||
else out.push('\n') | ||
// if (!(/^tests [1-9]$/gi.test(comment))) console.log(true);//out.push('\n'); | ||
// else if (!(/^pass [1-9]$/gi.test(comment))) console.log(true);//out.push('\n'); | ||
// out.push('\n'); | ||
out.push(' ' + comment + '\n'); | ||
@@ -30,7 +40,6 @@ }); | ||
out.push(' ' + output + ' ' + res.name + '\n'); | ||
out.push(' ' + output + ' ' + chalk.gray(res.name) + '\n'); | ||
}); | ||
tap.on('extra', function (extra) { | ||
// out.push('\n' + chalk.bold('LOG: ') + extra + '\n'); | ||
out.push(' ' + extra + '\n'); | ||
@@ -40,4 +49,2 @@ }); | ||
tap.on('results', function (res) { | ||
out.push('\n'); | ||
if (errors.length) { | ||
@@ -44,0 +51,0 @@ var past = (errors.length == 1) ? 'was' : 'were'; |
{ | ||
"name": "tap-spec", | ||
"version": "0.0.1", | ||
"version": "0.1.1", | ||
"description": "Formatted TAP output like Mocha's spec reporter", | ||
@@ -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
2746
48