Skip to content

Commit ab7e463

Browse files
Added api reference for And and But methods (cucumber#1611)
* Added api reference for And and But methods * Updated CHANGELOG.md
1 parent c5e6e68 commit ab7e463

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
2222
### Fixed
2323

2424
* Fix types for hook functions so they can return e.g. `'skipped'` ([#1542](https://github.com/cucumber/cucumber-js/pull/1542))
25+
* Fixed API reference for `And` and `But` methods ([#1611](https://github.com/cucumber/cucumber-js/pull/1611))
2526

2627
## [7.0.0] (2020-12-21)
2728

docs/support_files/api_reference.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ Multiple `After` hooks are executed in the **reverse** order that they are defin
4646

4747
---
4848

49+
#### `And(pattern[, options], fn)`
50+
51+
Alias of `defineStep`.
52+
53+
---
54+
4955
#### `AfterAll([options,] fn)`
5056

5157
Defines a hook which is run after all scenarios have completed.
@@ -101,6 +107,12 @@ Multiple `BeforeStep` hooks are executed in the order that they are defined.
101107

102108
---
103109

110+
#### `But(pattern[, options], fn)`
111+
112+
Alias of `defineStep`.
113+
114+
---
115+
104116
#### `defineStep(pattern[, options], fn)`
105117

106118
Defines a step.

0 commit comments

Comments
 (0)