tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

adding an alias for `throw`as `crash`, avoiding problems with jshint checks in strict mode #57

Closed gabrielfalcao closed 12 years ago

gabrielfalcao commented 12 years ago

Hello TJ,

this commit has the exact same purpose of the previous one I sent.

That avoids emacs with jshint to complain about it:

http://f.cl.ly/items/2k3w1N3A033c0M3q3N0I/Screen%20Shot%202012-04-01%20at%201.45.12%20AM.png

I also added a small example of usage in the readme and update it regarding instanceOf

tj commented 12 years ago

How about maybe .throwError() to keep the "throw" in there

gabrielfalcao commented 12 years ago

Nice! It's just that I couldn't come out with a better name by that time. Fixing now...