Spy Decorator
Create a decorator spy(func) that should
return a wrapper that saves all calls to
function in its calls property.
Every call is saved as an array of arguments.
Create a decorator spy(func) that should
return a wrapper that saves all calls to
function in its calls property.
Every call is saved as an array of arguments.