Skip to content

Commit

Permalink
docs(*): correct example
Browse files Browse the repository at this point in the history
  • Loading branch information
otrava7 committed Feb 14, 2023
1 parent 62d84ee commit 983e180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func InitializeScenario(ctx *godog.ScenarioContext) {
Alternatively, you can also specify the keyword (Given, When, Then...) when creating the step definitions:
``` go
func InitializeScenario(ctx *godog.ScenarioContext) {
ctx.Given(`^I eat (\d+)$`, iEat)
ctx.When(`^there are (\d+) godogs$`, thereAreGodogs)
ctx.When(`^I eat (\d+)$`, iEat)
ctx.Given(`^there are (\d+) godogs$`, thereAreGodogs)
ctx.Then(`^there should be (\d+) remaining$`, thereShouldBeRemaining)
}
```
Expand Down

0 comments on commit 983e180

Please sign in to comment.