visionmedia/should.js — pull request #70 by skabbes (2012-06-08 01:03:59+00:00)
Title: Allow for providing arguments directly to throw

This is very helpful for testing functions which can throw different types of errors, or which should conditionally throw

```js
var throwsSometimes = function(a){
if( a === 1 ){
throw new Error('invalid argument');
}
};

throwsSometimes.should.throw(1, /^invalid/);
throwsSometimes.should.not.throw(50, /^invalid/);
```