Skip to content

Commit

Permalink
Added notes about arrays order in .contain*
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Apr 28, 2014
1 parent 5bbc5b1 commit 0ecdab6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ Assert given value to contain something *.eql* to otherValue. See examples to un
[{a: 'a'}, {b: 'b', c: 'c'}].should.not.containEql({b: 'b'});
```
When `.containEql` check arrays it check elements to be in the same order in `otherValue` and object just to be presented.
## .containDeep(otherValue)
Assert given value to contain something *.eql* to otherValue within depth.
Expand Down Expand Up @@ -433,6 +435,8 @@ Main difference with `.containEql` is that this assertion requires full type cha
if asserted value is an object, otherValue should be also an object (which is sub object of given).
The same is true for arrays, otherValue should be an array which compared to be subsequence of given object.
When `.containDeep` check arrays it check elements to be in the same order (as arrays ordered collections) in `otherValue` and object just to be presented.
## .match(otherValue)
Assert given object matches `otherValue`.
Expand Down

0 comments on commit 0ecdab6

Please sign in to comment.