I have a class in which I am passing in a mocked service. This class has caching so if I run the method twice I would expect the function called on the service on the first run not to be called on the second. Is there a way of testing that, ie
mock expects 'function never
or
mock not expects 'function
Didn’t notice never or once are functions, so any directly following code is seen as arguments, so leave a blank line, use a ;, or set the empty parameters
eg:
or,