testem-time-reporter
Advanced tools
Comparing version 1.2.9 to 1.2.10
14
index.js
@@ -21,5 +21,13 @@ /* eslint-env node */ | ||
write(chalk.red(`\nTest Failure - ${data.name.trim()}\n`)); | ||
if (data.error && data.error.message) { | ||
write(`\t ${chalk.red(data.error.message)} \n`); | ||
write(`\t${chalk.red(data.error.stack)} \n`); | ||
if (data.error) { | ||
if (data.error.message) { | ||
write(`\t ${chalk.red(data.error.message)} \n`); | ||
} | ||
if (data.error.actual && data.error.expected) { | ||
write(`\t Actual : ${chalk.red(data.error.actual)}`); | ||
write(`\t Expected: ${chalk.yellow(data.error.expected)}`); | ||
} | ||
if (data.error.stack) { | ||
write(`\t${chalk.red(data.error.stack)} \n`); | ||
} | ||
} else { | ||
@@ -26,0 +34,0 @@ write(`\t ${chalk.red(JSON.stringify(data))} \n`); |
{ | ||
"name": "testem-time-reporter", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "A testem reporter for highlighting tests", | ||
@@ -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
10038
193