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
support promises resolve/reject #46
Comments
I'm still back and forth on this. Going to keep chewing on this post 1.0.0 |
Essentially that would be a shortcut for The problem with this is: what is To support these cases it would probably make sense to add a second, optional parameter to |
@Turbo87, yes, if this is implemented then the behavior would be:
|
This interface sounds really useful - setting up doubles for Promises takes a bit of boilerplate. Is it planned for any time soon? Are you happy with the proposed interface, and accepting PRs? |
@rowanu yeah, I'm open to seeing a PR on this. |
I've started working on this issue. See the progress in my fork. Currently, only native |
Thanks @mgryszko -- I don't think I can merge unless we make the |
I got an email asking for promise support. I didn't think hard about it because I don't have an immediate need.
What if we had this API?
And then maybe on the verification side?
I don't use promises much and I generally don't TDD with them in mind (since I try to keep async stuff to the periphery of my app where I'm integrating with stuff). Any thoughts on how to go about this or what an example test would look like?
Paging @jasonkarns as he's my promise whisperer
The text was updated successfully, but these errors were encountered: