You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An instance of callData represents a single call to a spy. You can access them through a specific spy's .calls property, as you noticed. callData is used by the spy-related matchers like toHaveBeenCalledWith, and you can also write your own matching logic that uses it.
There isn't actually a static Spy.callData property. I don't know for sure, but my guess is that it was marked up that way in order to get the docs for it to show up in the same place as the Spy docs.
In https://jasmine.github.io/api/edge/Spy.html, you can find
What can it be used for?
How to use it?
Since it's static, as soon as you create the
Spy
via any method, it will be ever and ever undefined, invoking or not the spyOnly to get detailed information through Spy.calls?
Note
The text was updated successfully, but these errors were encountered: