-
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
fix(PromiseObservable): fromPromise does not accept PromiseLike object #2505
fix(PromiseObservable): fromPromise does not accept PromiseLike object #2505
Conversation
And interestingly we didn't have test cases for this cases as well. @MidnightWonderer , would you mind to update PR to include one test cases for given changes? |
Hi @kwonoj, I am not really sure how to test the changes because they are all about the type declaration itself and not the implementation details. How about a new class exposes only what defined in I can't see why the test affects code coverage in any way. (unless you count the coverage inside the spec itself) |
a0b2f1a
to
ec25a2d
Compare
…se implementations
ec25a2d
to
7d04f24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was originally thinking replicate existing test cases but using non-native promise (like bluebird), but this test looks ok to me. I'll leave this PR opened to get another approval, or feedback.
I guess this is for minor, labeled it for now. |
PR LGTM |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I can not use
Observable.fromPromise
with promises from when.The class is clearly documented that it should accept Promises/A+ spec compliant Promise.
I think the type should be relaxed.