From 86a8466a5a39e3f814489268cc1027565ddb60b1 Mon Sep 17 00:00:00 2001 From: egavr Date: Fri, 23 Dec 2016 15:16:21 +0300 Subject: [PATCH] fix: log a path to an HTML report after tests finish --- lib/reporters/html/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());