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

Regression: Assertions should return promises. #395

Merged
merged 1 commit into from
Dec 31, 2015

Conversation

jamestalmage
Copy link
Contributor

This fixes that regression, and extends the promise returning behavior to all assertions.

This would be useful in async test functions to bail on the remaining tests if some precondition fails. Simply await the assertion.

See: sindresorhus/delay#10

This fixes that regression, and extends the promise returning behavior to all assertions.

This would be useful in `async` test functions to bail on the remaining tests if some precondition fails. Simply `await` the assertion.
sindresorhus added a commit that referenced this pull request Dec 31, 2015
Regression: Assertions should return promises.
@sindresorhus sindresorhus merged commit b04d004 into avajs:master Dec 31, 2015
@jamestalmage jamestalmage deleted the assertions-return-promises branch January 1, 2016 07:14
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