Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Jan 4, 2017
1 parent 9882e12 commit aa9fa30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/nyanCat.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ NyanCat.prototype.reset = function() {
NyanCat.prototype.draw = function(appendOnly){
this.drawUtil.appendRainbow(this.rainbowifier);
if (!appendOnly) {
this.drawUtil.drawScoreboard(this.stats);
this.drawUtil.drawScoreboard(this.stats && this.stats._sum);
this.drawUtil.drawRainbow();
this.drawUtil.drawNyanCat(this.stats);
}
Expand Down Expand Up @@ -145,9 +145,7 @@ NyanCat.prototype.onSpecComplete = function(browser, result) {
});
});

Object.keys(testStats).forEach(function(prop) {
browser.lastResult[prop] = testStats[prop];
});
browser.lastResult._sum = testStats;
}

this.stats = browser.lastResult;
Expand Down

0 comments on commit aa9fa30

Please sign in to comment.