A custom matcher should implement this interface and be registered with EqualMatchingInjectorConfig.
The parameters are always not null or undefined, and they are always not equal (!==).
Returns
undefined if the matcher is not intended to compare objects of such type, otherwise result of comparision.
// A custom matcher that matches Moment and Date objects import { EqualMatchingInjectorConfig, IObjectMatcher, Mock, OBJECT_MATCHERS } from"moq.ts"; import { isMoment, utc } from"moment";
A custom matcher should implement this interface and be registered with EqualMatchingInjectorConfig. The parameters are always not null or undefined, and they are always not equal (!==).
Returns
undefined if the matcher is not intended to compare objects of such type, otherwise result of comparision.