Skip to content

Commit

Permalink
Regexp to cucumberexp (#1934)
Browse files Browse the repository at this point in the history
* Replace regexp with cucumber expressions

* Replace 3 instance of regexp with cucumber exp

* Replace 2 instance of regexp with cucumber exp

* changed one instance of regexp to cucumber exp

Co-authored-by: Matt Wynne <[email protected]>
  • Loading branch information
shivamsanju and mattwynne authored Feb 25, 2022
1 parent 8a1fee4 commit 0195962
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions features/step_definitions/cli_steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,17 @@ When(
)

When(
/^I run cucumber-js \(installed (locally|globally)\)$/,
'I run cucumber-js \\(installed locally\\)',
{ timeout: 10000 },
async function (this: World, location: string) {
if (location === 'locally') {
return await this.run(this.localExecutablePath, [])
}
async function (this: World) {
return await this.run(this.localExecutablePath, [])
}
)

When(
'I run cucumber-js \\(installed globally\\)',
{ timeout: 10000 },
async function (this: World) {
return await this.run(this.globalExecutablePath, [])
}
)
Expand Down

0 comments on commit 0195962

Please sign in to comment.