Skip to content

Commit

Permalink
Rename makeReportCode
Browse files Browse the repository at this point in the history
Co-authored-by: Harry Sarson <[email protected]>
  • Loading branch information
lydell and harrysarson committed Oct 26, 2020
1 parent a773ff4 commit d7c3600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function makeOptsCode(

return `
{ runs = ${isNaN(fuzz) ? 'Nothing' : `Just ${fuzz}`}
, report = ${makeReportCode(report)}
, report = ${generateElmReportVariant(report)}
, seed = ${finalSeed}
, processes = ${processes}
, globs =
Expand All @@ -326,7 +326,7 @@ function makeOptsCode(
`.trim();
}

function makeReportCode(report) {
function generateElmReportVariant(report) {
switch (report) {
case 'json':
return 'JsonReport';
Expand Down

0 comments on commit d7c3600

Please sign in to comment.