Skip to content

Commit

Permalink
fix: call printStats with summed stats
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Jan 4, 2017
1 parent aa9fa30 commit b8da4c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/nyanCat.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ NyanCat.prototype.onRunComplete = function() {
} else {
this.drawUtil.fillWithNewlines();
printers.printTestFailures(this.dataStore.getData(), this.options.suppressErrorReport);
printers.printStats(this.stats);
printers.printStats(this.stats._sum);
printers.printBrowserLogs(this.browser_logs);
}
shellUtil.cursor.show();
Expand Down
2 changes: 1 addition & 1 deletion test/nyanCat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ describe('nyanCat.js test suite', function() {
sut.options.suppressErrorReport));

ok(printersFake.printStats.calledOnce);
ok(printersFake.printStats.calledWithExactly(sut.stats));
ok(printersFake.printStats.calledWithExactly(sut.stats._sum));

ok(printersFake.printBrowserLogs.calledOnce);
ok(printersFake.printBrowserLogs.calledWithExactly(sut.browser_logs));
Expand Down

0 comments on commit b8da4c7

Please sign in to comment.