-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Assertion Enhancement: toBeCalled(x) #1689
Comments
actually.. we already have |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'd like to request that we either add
toBeCalledOnce()
ortoBeCalled(x)
wherex
represents the number of times the mock function was called.There is a subtle but significant difference between these two assertions:
The difference is that the second asserts that it was called only one time. No more, no less. The first only asserts that it was called, not that it was only called one time.
The text was updated successfully, but these errors were encountered: