Closed cowboyd closed 8 years ago
I'm testing for precondition, click on a button and check the result. How would that work in this setup?
@cowboyd it's a little verbose, but let's merge it in so I can rebase my branch against it.
It's actually less verbose if you have more than one assertion, and I think that one less API to work with means a simpler model.
BDD style encourages the explicit separation of actions and consequences. Actions are initiated in the
beforeEach
blocks associated with thedescribe
describing the action, and consequences are verified inside theit
block.The general rule is that
it
should have no side-effects.