Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SpyCall

example
import { spy } from '@paychex/core';

const method = spy();

method('abc');
method('def');

method.args; // ["def"]
method.calls[0].args; // ["abc"]
method.calls[0].callTime; // Date

method.call(window, "ghi");
method.calls.mostRecent().context; // Window

Hierarchy

Index

Properties

args: any[]

The arguments passed to this invocation of the spy.

callTime: Date

When the spy was invoked.

context: any

The this context used for this invocation of the spy.