invent-ed / devleague--behavior-driven-shopping-list

BDD Client Side Shopping List
0 stars 0 forks source link

add more specs for ShoppingList .render() method #19

Open theRemix opened 7 years ago

theRemix commented 7 years ago

add more cases for when list is empty, add 1, add 1 and remove 1, add 2, add 2 then remove 1, add 1 then check() it, etc.

invent-ed commented 7 years ago

fixed

theRemix commented 7 years ago

refactor the specs (it() blocks) so that each of your test cases are separate and in isolation. if one thing breaks, it should be easy to identify which case is failing the tests.

there are too many unrelated expects in on it() spec