From e57769674bbec60b5b3bf064d396903ca31864e5 Mon Sep 17 00:00:00 2001 From: shadowusr Date: Fri, 8 Sep 2023 14:18:59 +0300 Subject: [PATCH] fix: fix merge-reports command --- lib/merge-reports/index.js | 2 +- test/unit/lib/merge-reports/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/merge-reports/index.js b/lib/merge-reports/index.js index 4d307cb03..d18d685a4 100644 --- a/lib/merge-reports/index.js +++ b/lib/merge-reports/index.js @@ -6,7 +6,7 @@ module.exports = async (pluginConfig, hermione, srcPaths, {destination: destPath validateOpts(srcPaths, destPath); await Promise.all([ - serverUtils.saveStaticFilesToReportDir(hermione, pluginConfig, destPath), + serverUtils.saveStaticFilesToReportDir(hermione.htmlReporter, pluginConfig, destPath), serverUtils.writeDatabaseUrlsFile(destPath, srcPaths) ]); diff --git a/test/unit/lib/merge-reports/index.js b/test/unit/lib/merge-reports/index.js index aa15d9014..e83f9a2c5 100644 --- a/test/unit/lib/merge-reports/index.js +++ b/test/unit/lib/merge-reports/index.js @@ -56,7 +56,7 @@ describe('lib/merge-reports', () => { await execMergeReports_({pluginConfig, hermione, paths, opts: {destination}}); - assert.calledOnceWith(serverUtils.saveStaticFilesToReportDir, hermione, pluginConfig, destination); + assert.calledOnceWith(serverUtils.saveStaticFilesToReportDir, hermione.htmlReporter, pluginConfig, destination); assert.calledOnceWith(serverUtils.writeDatabaseUrlsFile, destination, paths); });