Skip to content

Commit

Permalink
Make sure there is content in the string before writing to console. F…
Browse files Browse the repository at this point in the history
…ixes issue where there is an empty line per spec in the output with verbosity of 1 set.
  • Loading branch information
coderroggie committed Jul 9, 2015
1 parent 209456b commit abd6100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
function log(str) {
var con = global.console || console;
if (con && con.log) {
if (con && con.log && str && str.length) {
con.log(str);
}
}
Expand Down

0 comments on commit abd6100

Please sign in to comment.