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

Silence Bluebird js warnings #1967

Merged
merged 1 commit into from
Nov 18, 2015
Merged

Conversation

krisr
Copy link
Contributor

@krisr krisr commented Nov 17, 2015

Bluebird js now prints a warning message and stack trace when it discovers Promises that create other Promises but do not return them. Mocha trips this warning when the user chains together multiple hooks, and this PR eliminates the warning by explicitly returning null instead of undefined which signals that the warning should not be emitted.

@boneskull
Copy link
Contributor

@krisr This fails a lint check; please fix, otherwise LGTM.

@krisr
Copy link
Contributor Author

krisr commented Nov 18, 2015

@boneskull, thanks. I fixed the whitespace issue.

boneskull added a commit that referenced this pull request Nov 18, 2015
@boneskull boneskull merged commit 67d0fac into mochajs:master Nov 18, 2015
@boneskull
Copy link
Contributor

tyvm!

@simonratner
Copy link

Any chance of publishing a new release? Just ran into this myself.

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.

3 participants