Index 4 passed
feature
given / when / then
The core BDD primitives. given() sets up the world, when() performs the action, then() asserts the outcome.
Setup factories chain left to right, each receiving and enriching the fixture.
given
the value is 3
when
it is doubled
✓
then
the result is 6
when
it is negated
✓
then
the result is -3
when
it is doubled and it is negated
✓
then
the results are 6 and -3
given
the value starts at 0
given
it is set to 5
when
it is doubled
✓
then
the result is 10