Class: UnexpectedArgumentsError

Errors.UnexpectedArgumentsError

Error thrown when an Mock is called with different arguments than specified in it's ExpectedCall.

Constructor

new UnexpectedArgumentsError(mock, args, calls)

Creates a new UnexpectedArgumentsError

Parameters:
Name Type Description
mock Mock

Mock that was called.

args Array.<object>

Arguments of the unexpected call.

calls Array.<ExpectedCall>

Expected calls.

Source: