chaijs/chai — pull request #333 by cmpolis (2014-12-28 02:11:10+00:00)
Title: Added `change`, `increase` and `decrease` assertions with `by` chain (#330)

Added `change`, `increase` and `decrease` assertions with `by` chain:

```javascript
buildUser = function() { ... };
removeUsers = function() { ... };
buildUser.should.change(users, 'length');
buildUser.should.change(users, 'length').by(1);
removeUsers.should.decrease(users, 'length');
...
```

I've used `change` a bunch in other testing setups and it allows for more readable and terse tests *(instead of `before=val ... val.should.eq(before+1)`)*.