Skip to content

Commit

Permalink
Tiny tweak to doReport log output
Browse files Browse the repository at this point in the history
Don't output "0 of 0 tests passed" when zero tests passed
  • Loading branch information
pineapplemachine committed Apr 13, 2018
1 parent 55da30b commit 1d21f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ class CanaryTest{
}
if(report.passed.length === totalTests){
log(green(`${totalTests} of ${totalTests} tests passed.`));
}else{
}else if(report.passed.length){
log(`${report.passed.length} of ${totalTests} tests ${green("passed")}.`);
}
if(report.skipped.length){
Expand Down

0 comments on commit 1d21f80

Please sign in to comment.