New assertion: isError #145

Closed
SaltwaterC opened this Issue Mar 20, 2013 · 1 comment

Projects

None yet

2 participants

@SaltwaterC

Hi,

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.

@logicalparadox
Member

Please use plugin api.

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