Skip to content

Commit

Permalink
Simplify the first sentence about array-like.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed Jun 22, 2019
1 parent 6bd18d9 commit 34035a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/assertions/any/to-satisfy.md
Expand Up @@ -26,9 +26,9 @@ expect({ bar: 'quux', baz: true }, 'to satisfy', { bar: /QU*X/i });

## array-like

When satisfying against an array-like, length is always taken into account.
The behaviour is thus to specify the specification of each item that is expected
in the array:
When satisfying against an array-like, length is always taken into account. The
effect is that the asasertion allows making statements via a specification of
each element that is expected to be in the array:

```js
expect([0, 1, 2], 'to satisfy', [0, 1]);
Expand Down

0 comments on commit 34035a5

Please sign in to comment.