Skip to content

Support code expectation in t.throws() #1708

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

Closed
novemberborn opened this issue Feb 13, 2018 · 1 comment
Closed

Support code expectation in t.throws() #1708

novemberborn opened this issue Feb 13, 2018 · 1 comment

Comments

@novemberborn
Copy link
Member

novemberborn commented Feb 13, 2018

#1704 introduces an expectation object for t.throws(). It'd be neat if we could add an expectation for the code property in Node.js.

We could consider supporting errno as well. I suspect code may be the more future proof property though, in which case I wonder if errno support is really needed.

@sindresorhus
Copy link
Member

👍 to code, 👎to errno.

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

No branches or pull requests

2 participants