Function assertSpyCallArgs
- assert
Spy <Self, Args, Return, ExpectedArgs>(spy, callIndex, expected): ExpectedArgsCall Args Type Parameters
Parameters
- spy: SpyLike<Self, Args, Return>
The spy to check.
- callIndex: number
The index of the call to check.
- expected: ExpectedArgs
The expected arguments.
Returns ExpectedArgs
The actual arguments.
- spy: SpyLike<Self, Args, Return>
- assert
Spy <Self, Args, Return, ExpectedArgs>(spy, callIndex, argsStart, expected): ExpectedArgsCall Args Asserts that an spy is called with a specific range of args as expected. If a start and end index is not provided, the expected will be compared against all args. If a start is provided without an end index, the expected will be compared against all args from the start index to the end. The end index is not included in the range of args that are compared.
Type Parameters
Parameters
- spy: SpyLike<Self, Args, Return>
The spy to check.
- callIndex: number
The index of the call to check.
- argsStart: number
The start index of the arguments to check. If not specified, it checks the arguments from the beignning.
- expected: ExpectedArgs
The expected arguments.
Returns ExpectedArgs
The actual arguments.
- spy: SpyLike<Self, Args, Return>
- assert
Spy <Self, Args, Return, ExpectedArgs>(spy, callIndex, argsStart, argsEnd, expected): ExpectedArgsCall Args Asserts that an spy is called with a specific range of args as expected. If a start and end index is not provided, the expected will be compared against all args. If a start is provided without an end index, the expected will be compared against all args from the start index to the end. The end index is not included in the range of args that are compared.
Type Parameters
Parameters
- spy: SpyLike<Self, Args, Return>
The spy to check
- callIndex: number
The index of the call to check
- argsStart: number
The start index of the arguments to check. If not specified, it checks the arguments from the beignning.
- argsEnd: number
The end index of the arguments to check. If not specified, it checks the arguments until the end.
- expected: ExpectedArgs
The expected arguments.
Returns ExpectedArgs
The actual arguments
- spy: SpyLike<Self, Args, Return>
Asserts that an spy is called with a specific range of args as expected. If a start and end index is not provided, the expected will be compared against all args. If a start is provided without an end index, the expected will be compared against all args from the start index to the end. The end index is not included in the range of args that are compared.