The goog.testing.mockmatchers.IgnoreArgument Class

goog.testing.mockmatchers.IgnoreArgument
> goog.testing.mockmatchers.ArgumentMatcher

goog.testing.mockmatchers.IgnoreArgument()

A matcher that always returns true. It is useful when the user does not care for some arguments. For example: mockFunction('username', 'password', IgnoreArgument);

.matches(toVerify, opt_expectation)

Inherited from goog.testing.mockmatchers.ArgumentMatcher .

A function that takes a match argument and an optional MockExpectation which (if provided) will get error information and returns whether or not it matches.

toVerify {*}
The argument that should be verified.
opt_expectation {goog.testing.MockExpectation?=}
The expectation for this match.
returns {boolean}
Whether or not a given argument passes verification.