Skip to content

Commit

Permalink
fix: fix merge-reports command
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Sep 8, 2023
1 parent 1a20d63 commit e577696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/merge-reports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]);

Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/merge-reports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit e577696

Please sign in to comment.