Skip to content

Commit

Permalink
Add docs for new array matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Dec 25, 2016
1 parent bd9d57f commit f9cacca
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/release-source/release/matchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ Requires the value to be a `Function`.
Requires the value to be an `Array`.


#### `sinon.match.array.deepEquals(arr)`

Requires an array to be deep equal another one.


#### `sinon.match.array.startsWith(arr)`

Requires an array to start with the same values as another one.


#### `sinon.match.array.endsWith(arr)`

Requires an array to end with the same values as another one.


#### `sinon.match.array.contains(arr)`

Requires an array to contain each one of the values the given array has.


#### `sinon.match.regexp"

Requires the value to be a regular expression.
Expand Down

0 comments on commit f9cacca

Please sign in to comment.