From b8da4c73cca3811431faa4e5cc269de69f6a9eb1 Mon Sep 17 00:00:00 2001 From: Dolphin Wood Date: Wed, 4 Jan 2017 16:38:00 +0900 Subject: [PATCH] fix: call `printStats` with summed stats --- lib/nyanCat.js | 2 +- test/nyanCat.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nyanCat.js b/lib/nyanCat.js index 3aa21bd..6310926 100644 --- a/lib/nyanCat.js +++ b/lib/nyanCat.js @@ -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(); diff --git a/test/nyanCat.test.js b/test/nyanCat.test.js index 7db6f57..34f560d 100644 --- a/test/nyanCat.test.js +++ b/test/nyanCat.test.js @@ -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));