diff --git a/karma-benchmark-reporter.js b/karma-benchmark-reporter.js index 0579b1e..5b2676e 100644 --- a/karma-benchmark-reporter.js +++ b/karma-benchmark-reporter.js @@ -13,7 +13,7 @@ function BenchmarkReporter (baseReporterDecorator) { } } this.onRunComplete = function () { - if (resultsPerBrowser.length === 0) return + if (resultsPerBrowser.size === 0) return this.writeCommonMsg(chalk.underline.bold('\nBENCHMARK (times in seconds):\n')) resultsPerBrowser.forEach((results, browserName) => { this.writeCommonMsg(` ${chalk.bold(browserName)}:\n`)