fix(benchmark): do not print title if did not run

Fixes #617.
pull/631/head
Shahar Or (mightyiam) 5 years ago committed by Shahar Dawn Or
parent b5f0d0bd8a
commit 5ad5c64755

@ -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`)

Loading…
Cancel
Save