diff --git a/lib/reporters/html/index.js b/lib/reporters/html/index.js index 83727d060..366b77e06 100644 --- a/lib/reporters/html/index.js +++ b/lib/reporters/html/index.js @@ -126,7 +126,7 @@ module.exports = function htmlReporter(runner, reportPath) { const generateReportPromise = Promise.all([prepareViewData(runner), prepareImages(runner)]) .spread(view.createHtml) .then((html) => view.save(html, reportPath)) - .then(logPathToHtmlReport(reportPath)) + .then(() => logPathToHtmlReport(reportPath)) .catch(logError); runner.on(Events.END_RUNNER, () => generateReportPromise.thenReturn());