MockFunctionCall

sealed external interface MockFunctionCall<F : Function<*>, ReturnType, Args>(source)

Properties

Link copied to clipboard
abstract var arguments: Args

An array of the arguments passed to the mock function.

Link copied to clipboard
abstract var error: Any?

If the mocked function threw then this property contains the thrown value.

Link copied to clipboard
abstract var result: ReturnType?

The value returned by the mocked function.

Link copied to clipboard
abstract var stack: JsError

An Error object whose stack can be used to determine the callsite of the mocked function invocation.

Link copied to clipboard
abstract var target: Any?

If the mocked function is a constructor, this field contains the class being constructed. Otherwise this will be undefined.

Link copied to clipboard
abstract var this: Any?

The mocked function's this value.