-
-
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
Rejecting a promise with an object gives a blank failure #1532
Labels
type: bug
a defect, confirmed by a maintainer
Comments
Confirmed. |
dasilvacontin
added
type: bug
a defect, confirmed by a maintainer
status: accepting prs
Mocha can use your help with this one!
labels
Feb 4, 2015
jakecraige
added a commit
to jakecraige/mocha
that referenced
this issue
Feb 6, 2015
This was referenced Feb 6, 2015
Closed via #1537. |
Sorry I didn't see this earlier. Please see my comment here. |
jakecraige
added a commit
to jakecraige/mocha
that referenced
this issue
Feb 9, 2015
boneskull
removed
the
status: accepting prs
Mocha can use your help with this one!
label
Oct 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a promise is rejected with a normal javascript object the test still fails, but with a blank message. This confused me for the longest time.. It would be great if we could have it at least
JSON.stringify
the object or alert the user that they should return anError
object like it does if you resolve with a string.Test case to reproduce plus show current behavior using RSVP promise library:
The text was updated successfully, but these errors were encountered: