CallTracker
This feature is deprecated and will be removed in a future version. Please consider using alternatives such as the mock
helper function.
Since
v14.2.0, v12.19.0
Functions
Link copied to clipboard
The wrapper function is expected to be called exactly exact
times. If the function has not been called exactly exact
times when tracker.verify()
is called, then tracker.verify()
will throw an error.
Link copied to clipboard
Example:
Link copied to clipboard
The arrays contains information about the expected and actual number of calls of the functions that have not been called the expected number of times.