FakeFunction

FakeFunction

fake function

Constructor

new FakeFunction()

Source:

Members

expectations :Array.<Expectation>

Source:

an array of expectation objects

Type:

calls :Array.<Call>

Source:

an array of call objects

Type:

isCalled :bool

Source:

bool value if the function is called or not

Type:
  • bool

Methods

callArgFuncAt(index, thisArg)

Source:

Call the function in specified index of latest called arguments

Parameters:
Name Type Description
index number

index of the function in arguments that will be called

thisArg Object

the value of this provided for the call to function