Skip to content

Commit c16103e

Browse files
committed
Optimizing const string
1 parent 9c430ca commit c16103e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/step_definitions/cli_steps.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ When(
5353
'I run cucumber-js with all formatters',
5454
{ timeout: 10000 },
5555
async function (this: World) {
56-
const formats = ['html:html.out', 'json:json.out']
57-
const args:string = formats.map((f) => `--format ${f}`).join(' ')
56+
const args = "--format html:html.out --format json:json.out"
5857
const renderedArgs = Mustache.render(args, this)
5958
const stringArgs = stringArgv(renderedArgs)
6059
return await this.run(this.localExecutablePath, stringArgs)

0 commit comments

Comments
 (0)