The goog.testing.mockmatchers.ObjectEquals Class

goog.testing.mockmatchers.ObjectEquals
> goog.testing.mockmatchers.ArgumentMatcher

goog.testing.mockmatchers.ObjectEquals(expectedObject)

A matcher that verifies that the argument is an object that equals the given expected object, using a deep comparison.

expectedObject {Object}
An object to match against when verifying the argument.

.matches(toVerify, opt_expectation)

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.