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
Verify no other calls #1991
Labels
Comments
That seems like it would be a nice addition. I occasionally use the equivalent Mockito facility. I'd rather call the matcher |
Ulys
added a commit
to Ulys/jasmine
that referenced
this issue
Feb 22, 2023
Ulys
added a commit
to Ulys/jasmine
that referenced
this issue
Feb 23, 2023
Closed
9 tasks
Ulys
added a commit
to Ulys/jasmine
that referenced
this issue
Mar 5, 2023
Ulys
added a commit
to Ulys/jasmine
that referenced
this issue
Mar 5, 2023
Ulys
added a commit
to Ulys/jasmine
that referenced
this issue
Mar 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Proposal
I want to verify that no other calls have been made after verifying the known call.
Context
Some mocked spies can have many methods. Instead of checking every method to not have been called, I'm looking for a way to do this automatically.
I know there is
toHaveSpyInteractions
, but that only checks if any interactions have been made.Example
I want to write something like this:
Instead of having to write something like this:
Other Information
In C# there is something similar for
Moq
, calledVerifyNoOtherCalls
.Looking through the source-code, it looks like this would only be possible if the
toHaveBeenCalled
method (and similar) sets some kind ofisVerified
state totrue
in theCallTracker
most likely. Exactly likeMoq
does.The text was updated successfully, but these errors were encountered: