Skip to content

MockFunctionCall

type MockFunctionCall<'F, 'ReturnType, 'Args> = MockFunctionCall<'F,'ReturnType,'Args>
AssemblyXantham.Fable.Node

Properties

abstract member arguments: 'Args with get, set

An array of the arguments passed to the mock function.

abstract member error: obj with get, set

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

abstract member result: 'ReturnType option with get, set

The value returned by the mocked function.

If the mocked function threw, it will be undefined.

abstract member stack: exn with get, set

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

abstract member target: obj with get, set

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

abstract member this: obj with get, set

The mocked function's this value.