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

Fix an issue when describe and xdescribe fail without a callback (#1744) #1817

Closed
wants to merge 1 commit into from

Conversation

antoval
Copy link
Contributor

@antoval antoval commented Jul 28, 2015

Now describe fails with a helpful error message whereas xdescribe doesn't execute the callback if it's not supplied.

Closes #1744.

@dasilvacontin
Copy link
Contributor

Hi, thanks for the PR!

You shouldn't build mocha.js, that is only done when a release is prepared by one of the maintainers.

Also, @mochajs/mocha, is callback the appropriate word here? Or is something like 'suite definition' used?

@antoval
Copy link
Contributor Author

antoval commented Jul 28, 2015

Hey!

Thanks for the prompt feedback! I should probably revert changes to mocha.js? Suite definition does sound more appropriate, I would change that as well.

@dasilvacontin
Copy link
Contributor

No problemo!

Yep, the PR should have no changes on mocha.js. Regarding the suite definition improvement, you could add it already, but I'd first like to know the other maintainers' opinion before merging.

@danielstjules
Copy link
Contributor

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.

@dasilvacontin
Copy link
Contributor

ping @antoval

@antoval
Copy link
Contributor Author

antoval commented Nov 26, 2015

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.

@antoval
Copy link
Contributor Author

antoval commented Nov 30, 2015

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 suite() whereas qunit's suite() doesn't require a function callback, thus no changes need to be done. Am I missing anything here? Thanks!

@hollomancer
Copy link

Will need to be rebased.

@boneskull boneskull self-assigned this Sep 18, 2016
@boneskull boneskull added this to the v3.1.0 milestone Sep 18, 2016
@hollomancer
Copy link

We'll get this added!

@boneskull
Copy link
Contributor

added 3a2dae8

@boneskull
Copy link
Contributor

merged as e22c407 less mocha.js changes. @antoval thanks!!

@boneskull boneskull closed this Sep 19, 2016
@boneskull boneskull removed their assignment Dec 12, 2017
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

Successfully merging this pull request may close these issues.

5 participants