Skip to content

Commit

Permalink
Updating docs for .toEqual (#3556)
Browse files Browse the repository at this point in the history
* Updating docs for `.toEqual`
Fixes #3529

* Update ExpectAPI.md
  • Loading branch information
anilreddykatta authored and cpojer committed May 12, 2017
1 parent bb977d4 commit 6a12116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ describe('the La Croix cans on my desk', () => {
});
```

> Note: `.toEqual` won't perform a *deep equality* check for two errors. Only the `message` property of an Error is considered for equality. It is recommended to use the `.toThrow` matcher for testing against errors.
### `.toHaveLength(number)`

Use `.toHaveLength` to check that an object has a `.length` property and it is set to a certain numeric value.
Expand Down

0 comments on commit 6a12116

Please sign in to comment.