Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New assertion: isError #145

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

New assertion: isError #145

SaltwaterC opened this issue Mar 20, 2013 · 1 comment

Comments

@SaltwaterC
Copy link

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
Copy link
Member

Please use plugin api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants