-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Using mocha.throwError for better async error handling #222
Conversation
Travis is a little crazy. It passes as a PR for chai, but fails as a branch on my fork. |
@travisjeffery @visionmedia Hey, have you got time to take a look at this PR? |
Chai strives to remain test runner agnostic. Inclusion of this PR would violate that principle. Our plugin api is robust enough to have this implemented as a plugin. Furthermore, this PR implements this for the assert interface but ignores the chainable interfaces ( |
So, this idea is dead? Is there a plugin or anything that implements this? |
@diversario I guess I was just blocked, and I never got time to try this as a plugin as it was suggested. Interesting enough, making the necessary change on mocha was easier. |
😑Lame. |
I've been away from node.js for a while, so I don't remember the details any more. I was reviewing some of my stale code now. In my case, I think the async code was all inside a As I said, I don't remember exactly. This hope it helps. |
Thanks, @jpbochi. |
This is a follow up to mochajs/mocha#985