-
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(endWith): wrap args - they are not observables - in of before concatenating #4735
Conversation
Pull Request Test Coverage Report for Build 8438
💛 - Coveralls |
Oh wow! What a cool bug that made it through all of those tests! Since |
In endWith(of(undefined)) In endWith(undefined) But right now in |
@alex-wilmer It's matching the signature with the scheduler in it. Most likely because you do not have As mentioned in the latter comment, IMO, the deprecation in the TSDoc should not be removed to avoid the match in situations in which IMO, this is a documentation issue. |
…catenating (ReactiveX#4735) * test(endWith): add failing test * fix(endWith): wrap args in of before concat * chore(endWith): remove any assertion
Description:
This PR spreads the arguments passed to
endWith
into a call toof
which is then passed to `concat.The current implementation spreads the args directly into
concat
which is incorrect. The tests pass because strings are iterable and are therefore valid observable inputs. And the strings in the tests each contain only a single character. The test added in this PR uses numbers for values, and their use effects an error from the current, incorrectendWith
implementation.Related issue (if exists): #4731