One ridiculously simple function to fake and spy.
npm i fek
var test =var fake =
spy = fake(fn)
fn in a spy. If there's no
fn it fakes a function.
Returns an array of calls with the following properties:
args: an array of arguments
returned: the value that was returned by
Returns the number of times the function was called.
Returns the call object of the last call.
Returns the arguments of the last call.
Resets all spy values.