-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix an issue when describe and xdescribe fail without a callback (#1744) #1817
Conversation
…when not supplied with a callback (issue mochajs#1744).
Hi, thanks for the PR! You shouldn't build Also, @mochajs/mocha, is |
Hey! Thanks for the prompt feedback! I should probably revert changes to |
No problemo! Yep, the PR should have no changes on |
Thanks for the PR antoval! :) Definitely a helpful change, though it would need to target 3.0.0 like #1809 Beyond that, I think it would be worth implementing this change across all interfaces (not just BDD) to be consistent. |
ping @antoval |
Sorry for a long delay, didn't have a chance to spend more time with this due to traveling. I'm back soon and will make the changes mentioned above, should be quick. |
I followed the suggestions above and did the changes against the 3.0.0 release as well as changed the wording ('callback' vs 'suite definition'). I have one question before I commit my changes though. @danielstjules, I checked other interfaces (TDD and qunit). I did the same changes to TDD's |
Will need to be rebased. |
We'll get this added! |
added 3a2dae8 |
Now describe fails with a helpful error message whereas xdescribe doesn't execute the callback if it's not supplied.
Closes #1744.