-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
The "when" function does not create a stub #199
Labels
question
Further information is requested
Comments
Any updates ? |
I'm also facing this error |
I'm facing this error as well, any updates? |
Hi @InAnadea 👋 |
Closing for now since this issue is quite old and there isn't a minimal reproduction sample. If this is still a problem please file a new issue with a link to a reproduction sample, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I'm trying to mock the use case for the bloc. But I got the error:
Bad state: No method stub was called from within
when(). Was a real method called, or perhaps an extension method?
Steps to reproduce the behavior:
The source code of classes:
And I get an error:
Expected behavior
The "when" function should mock methods.
Logs
The text was updated successfully, but these errors were encountered: