visionmedia/should.js — pull request #79 by snakamura (2012-07-17 02:20:17+00:00)
Title: Check the type of a thrown exception with should.throw().

This patch allows you to specify a constructor to should.throw to test that the function throws an exception of the given type. Something like:

func.should.throw(SomeError);