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

refactor: verifyNoMoreInteractions error message does not provide a way to solve the issue. #496

Open
YazeedAlKhalaf opened this issue Dec 21, 2021 · 0 comments

Comments

@YazeedAlKhalaf
Copy link

Description

the error that is in the console is not helpful in solving the issue.

for me, through trial and error I discovered that I should verify each call for verifyNoMoreInteractions to work.

So I suggest adding a "Did you do the following ..." helper when printing the error in the console.

Now:

No more calls expected, but following found: MockCat.meow()

Proposal:

No more calls expected, but following found: MockCat.meow()

Tip: Make sure you verified every call for the mock you are running verifyNoMoreInteractions on.
Use verify(...).called(...).
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