Skip to main content

interface Spy.ObjMeta<T>

The additional information available for spied objects.

Implemented by: Spy.ClsObjMeta<T,A>

Type parameters​

NameDescription
Tundocumented

Properties​

callSequence​

Returns an array containing a sequence of the object methods called and the given parameters.

Definition​

get callSequence(): Spy.MethodCall<T>[];

nrCalls​

Returns the amount of calls that the object methods received.

Definition​

get nrCalls(): number;

Methods​

clearAll​

Empties both the spied objects' call sequence and its method call histories.

Definition​

clearAll(): void;

clearCallSequence​

Empties this spied objects' callSequence.

Definition​

clearCallSequence(): void;

clearMethods​

Empties for each method its call history.

Definition​

clearMethods(): void;

resetMethodStubs​

Resets the stub implementations for all object methods.

Definition​

resetMethodStubs(): void;