tj / should.js

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

Make instanceOf and throwError be aliased like others #89

Closed faridnsh closed 11 years ago

mrchief commented 11 years ago

throwError gives me this error:

TypeError: Object # has no method 'throwError'

My test

(function(){ throw new Error('someError'); }).should.throwError('someError');

throw works but I'd rather not use it due to jshint warnings.