The goog.testing.mockmatchers.InstanceOf Class

goog.testing.mockmatchers.InstanceOf
> goog.testing.mockmatchers.ArgumentMatcher

goog.testing.mockmatchers.InstanceOf(ctor)

A matcher that verifies that an argument is an instance of a given class.

ctor {Function}
The class that will be used for verification.

.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.