Class: UnexpectedFunctionCallError

Errors.UnexpectedFunctionCallError

Error thrown when an ExpectedCall is called and no incomplete expectation matches it.

Constructor

new UnexpectedFunctionCallError(mock, args, calls)

Creates a new OutOfOrderCallError

Parameters:
Name Type Description
mock Mock

Mock that was called.

args Array.<object>

Arguments of the unexpected call.

calls Array.<ExpectedCall>

Expected calls.

Source: