Skip to content

Commit

Permalink
Fix pageFooter option and use double-bang on customMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
BaCaRoZzo committed May 26, 2022
1 parent 9eb16f0 commit 47e5d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generate-report.js
Expand Up @@ -47,7 +47,7 @@ function generateReport(options) {
throw new Error('An output path for the reports should be defined, no path was provided.');
}

const customMetadata = options.customMetadata || false;
const customMetadata = !!options.customMetadata;
const customData = options.customData || null;
const plainDescription = !!options.plainDescription;
const style = options.overrideStyle || REPORT_STYLESHEET;
Expand All @@ -62,7 +62,7 @@ function generateReport(options) {
const durationInMS = !!options.durationInMS;
const hideMetadata = !!options.hideMetadata;
const pageTitle = options.pageTitle || 'Multiple Cucumber HTML Reporter';
const pageFooter = !!options.pageFooter;
const pageFooter = options.pageFooter || null;
const useCDN = !!options.useCDN;
const staticFilePath = !!options.staticFilePath;

Expand Down

0 comments on commit 47e5d3e

Please sign in to comment.