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

How can I modify the value define in mockReturnValue on a second call to the mocked method/function #73

Open
aruizca opened this issue Aug 12, 2021 · 0 comments

Comments

@aruizca
Copy link

aruizca commented Aug 12, 2021

Hi there,

when I do something like:

myMock.function
      .calledWith(anyObject())
      .mockReturnValue(generateValue());

If I called myMock.function twice, the generateValue() function is only called once. I need for that value to change over time. Is there any way please?

Thanks for you time and your awesome lib!

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

No branches or pull requests

1 participant