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

Update promise example to work with Mocha 3.0.0 and newer #774

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

jmccure
Copy link
Contributor

@jmccure jmccure commented Apr 22, 2022

This example fails with Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

On mochajs.org: In Mocha v3.0.0 and newer, returning a Promise and calling done() will result in an exception, as this is generally a mistake

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.

2 participants