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 #1191 - Tests succeed on rejected falsey promises #1224

Merged
merged 1 commit into from
Jul 8, 2014
Merged

Fix #1191 - Tests succeed on rejected falsey promises #1224

merged 1 commit into from
Jul 8, 2014

Conversation

mattias-lw
Copy link
Contributor

Make sure that a test case returning a promise fails if the promise is rejected without a reason (or a falsy one).

Make sure that a test case returning a promise fails if the promise is rejected without a reason.
@jonathanong
Copy link
Contributor

@domenic why can you reject promises without errors? :(

@domenic
Copy link
Contributor

domenic commented Jul 8, 2014

@jonathanong since rejected promises parallel and are intertwined with thrown errors, they must conform to that contract, which allows anything (even throw undefined).

+1 to this PR, by the way.

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