chaijs/chai — pull request #96 by NiKnight (2012-09-05 06:22:56+00:00)
Title: Piping message through should syntax, better Throws verbosity

Found myself having difficulties with 'expected 5 to equal 3' or 'expected true to equal false' messages, I thought I'd make it easier to give myself debugging hints later.

Also, I want to know what happened when an unexpected exception is thrown, so I made it give me more detail.

Also of note:
- keys() does fancy stuff with its arguments, so I couldn't add a msg parameter. throws() similarly had a number of parameters, so you only get the message piped through if you give it both an exception and a message to look for within that exception.
- added some missing root should tests for equal and Throw
- added some tests to ensure that the inner length checks for above/below/within still pipe the message through