[jest] updated toHaveProperty method of Matchers

This commit is contained in:
Mário Gonçalves
2018-02-14 18:34:29 +00:00
parent 423ace8fe7
commit c52bfaf215

View File

@@ -470,7 +470,7 @@ declare namespace jest {
* and it is set to a certain numeric value.
*/
toHaveLength(expected: number): R;
toHaveProperty(propertyPath: string, value?: any): R;
toHaveProperty(propertyPath: string | any[], value?: any): R;
/**
* Check that a string matches a regular expression.
*/