This interface is implemented by the return value of a Story's When function.
When
It can be used to chain multiple When functions together sequentially by calling .And.
.And
Call this function to chain multiple When functions together sequentially.
Alternatively, if you can nest another When inside the bodyFunc to express diverging "Story lines".
To validate the state following a state change with acceptance criteria, use Then inside the bodyFunc of When.
Then
a short description of an initial state
Use the body of this function to define acceptance criteria or nested state changes.
Generated using TypeDoc
This interface is implemented by the return value of a Story's
When
function.It can be used to chain multiple
When
functions together sequentially by calling.And
.