Skip to content

Commit bf80bec

Browse files
author
cloudhead
committed
time can equal 0, check more reliably
1 parent 98c70ad commit bf80bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vows/reporters/console.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ this.report = function (data, s) {
4242
style = event.honored === event.total ? ('green')
4343
: (event.errored === 0 ? 'yellow' : 'red');
4444

45-
if (event.time) {
45+
if ('time' in event) {
4646
puts("\nVerified " + event.total + " vows in " +
4747
(event.time + " seconds.\n"));
4848
}

0 commit comments

Comments
 (0)