New assertion: isError #145

SaltwaterC opened this Issue Mar 20, 2013 · 1 comment


None yet

2 participants



I often find myself writing

assert.instanceOf(err, Error, 'some message about it')

It would be nice to have a shorter version for checking that an error is actually an Error, like:

assert.isError(err, 'some message about it')

Less keystrokes and better semantics.


Please use plugin api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment