Add equals method to MatcherUtils

See http://jestjs.io/docs/en/expect.html#thisequalsa-b

> this.equals(a, b)
> This is a deep-equality function that will return true if two objects have the same values (recursively).
This commit is contained in:
Dobes Vandermeer
2018-06-27 11:45:22 -07:00
committed by GitHub
parent 529a40a7c2
commit fa83f5bf08
+4
View File
@@ -266,6 +266,10 @@ declare namespace jest {
printWithType(name: string, received: any, print: (value: any) => string): string;
stringify(object: {}, maxDepth?: number): string;
};
/**
* This is a deep-equality function that will return true if two objects have the same values (recursively).
*/
equals(a: any, b: any): boolean;
}
interface ExpectExtendMap {