Skip to content

Change links in event_handlers.md docs to make navigation work #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/support_files/event_handlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ You can register event handlers for the following events within the cucumber lif

| Event | Object |
|----------------|-----------------------------------------------------------|
| BeforeFeatures | array of [Features](lib/cucumber/ast/feature.js) |
| BeforeFeature | [Feature](lib/cucumber/ast/feature.js) |
| BeforeScenario | [Scenario](lib/cucumber/ast/scenario.js) |
| BeforeStep | [Step](lib/cucumber/ast/step.js) |
| StepResult | [StepResult](lib/cucumber/runtime/step_result.js) |
| AfterStep | [Step](lib/cucumber/ast/step.js) |
| ScenarioResult | [ScenarioResult](lib/cucumber/runtime/scenario_result.js) |
| AfterScenario | [Scenario](lib/cucumber/ast/scenario.js) |
| AfterFeature | [Feature](lib/cucumber/ast/feature.js) |
| FeaturesResult | [FeaturesResult](lib/cucumber/runtime/features_result.js) |
| AfterFeatures | array of [Features](lib/cucumber/ast/feature.js) |
| BeforeFeatures | array of [Features](/lib/cucumber/ast/feature.js) |
| BeforeFeature | [Feature](/lib/cucumber/ast/feature.js) |
| BeforeScenario | [Scenario](/lib/cucumber/ast/scenario.js) |
| BeforeStep | [Step](/lib/cucumber/ast/step.js) |
| StepResult | [StepResult](/lib/cucumber/runtime/step_result.js) |
| AfterStep | [Step](/lib/cucumber/ast/step.js) |
| ScenarioResult | [ScenarioResult](/lib/cucumber/runtime/scenario_result.js) |
| AfterScenario | [Scenario](/lib/cucumber/ast/scenario.js) |
| AfterFeature | [Feature](/lib/cucumber/ast/feature.js) |
| FeaturesResult | [FeaturesResult](/lib/cucumber/runtime/features_result.js) |
| AfterFeatures | array of [Features](/lib/cucumber/ast/feature.js) |

Hooks also trigger `BeforeStep`, `StepResult`, and `AfterStep` events with the object
[HookStep](lib/cucumber/ast/hook_step.js)
[HookStep](/lib/cucumber/ast/hook_step.js)

Handlers will be passed the associated object as the first argument.
Handlers can be synchronous, return a promise, accept an additional callback argument, or use generators.
Expand Down