import { Spy } from "https://deno.land/x/rhum@v2.1.0/mod.ts";
Create a spy out of a function expression.
Type Parameters
OriginalFunction extends Callable<ReturnValue>
Parameters
optional
returnValue: ReturnValue- (Optional) The value the spy should return when called. Defaults to "spy-stubbed".
Returns
Create a spy out of an object's method.
Parameters
optional
returnValue: ReturnValue- (Optional) The value the spy should return when called. Defaults to "spy-stubbed".