-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
returns
clears fake's callArgAt
#2572
Comments
Will try to create a fix later today But what do we define the behavior should be? Should |
Unfortunately, I won't be able to get to that soon, do you want to create a PR to fix it? |
I seem to be experiencing this same bug, but in reverse. I have a In terms of what the behavior should be, I feel like there isn't really a conflict here. I don't see any reason that the stub couldn't both call one of its args and return some value. |
Yeah, no conflict AFAI can see either. This should be a really small fix, if someone is interested in getting it working. Just remember to document it using a regression test 😉 |
Should be fixed by #2593 |
* Add regression test for #2572 * Partially revert "fix returns does not override call through (#2567)" This partially reverts commit 5fde5ae: - we keep the tests - revert to the old manual clearing of props The clearing of callThrough has then been manually added to what I deem are the relevant spots. Tests are unaltered.
Describe the bug
Starting from [email protected], using
returns
clears fake'scallArgAt
.This means that the callback will not be called.
To Reproduce
Run the following:
Expected behavior
The callback should be properly invoked.
Context (please complete the following information):
Additional context
Bug introduced by the fix for #2566 (see #2567).
Might be fixed by removing this line but this needs validation.
+@rluvaton
The text was updated successfully, but these errors were encountered: