Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
improve unit test coverage and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
TakenPilot committed Sep 27, 2014
1 parent 8b54d0c commit d80394d
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 146 deletions.
354 changes: 354 additions & 0 deletions coverage.html

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function Base(runner) {
}

Base.prototype.getBuffer = function () {
return this._buffer;
return this._buffer || '';
};

Base.prototype.print = function () {
Expand Down Expand Up @@ -347,9 +347,14 @@ Base.prototype.epilogue = function () {
self.log();

// passes
fmt = color('bright pass', ' ') + color('green', ' %d passing') + color('light', ' (%s)');
if (stats.duration) {
fmt = color('bright pass', ' ') + color('green', ' %d passing') + color('light', ' (%s)');
self.log(fmt, stats.passes || 0, ms(stats.duration));
} else {
fmt = color('bright pass', ' ') + color('green', ' %d passing');
self.log(fmt, stats.passes || 0);
}

self.log(fmt, stats.passes || 0, ms(stats.duration));

// pending
if (stats.pending) {
Expand Down

0 comments on commit d80394d

Please sign in to comment.