Class: OutOfOrderCallError

Errors.OutOfOrderCallError

Error thrown when an ExpectedCall is called out of order.

Constructor

new OutOfOrderCallError(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: