Skip to content

Commit

Permalink
Fixed small error in documentation for expect.not.arrayContaining(arr… (
Browse files Browse the repository at this point in the history
#6491)

* Fixed small error in documentation for expect.not.arrayContaining(array). Fixes #6432.

* Added pull request #6491 to changelog.
  • Loading branch information
mattiasahlsen authored and rickhanlonii committed Aug 15, 2018
1 parent 4364b26 commit 9621416
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@

### Fixes

- `[docs]` Fixed error in documentation for expect.not.arrayContaining(array). ([#6491](https://github.com/facebook/jest/pull/6491))
- `[jest-cli]` Add check to make sure one or more tests have run before notifying when using `--notify` ([#6495](https://github.com/facebook/jest/pull/6495))
- `[jest-cli]` Pass `globalConfig` as a parameter to `globalSetup` and `globalTeardown` functions ([#6486](https://github.com/facebook/jest/pull/6486))
- `[jest-config]` Add missing options to the `defaults` object ([#6428](https://github.com/facebook/jest/pull/6428))
Expand Down
2 changes: 1 addition & 1 deletion docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ The `expect.hasAssertions()` call ensures that the `prepareState` callback actua

### `expect.not.arrayContaining(array)`

`expect.not.arrayContaining(array)` matches a received array which contains none of the elements in the expected array. That is, the expected array **is not a subset** of the received array.
`expect.not.arrayContaining(array)` matches a received array which does not contain all of the elements in the expected array. That is, the expected array **is not a subset** of the received array.

It is the inverse of `expect.arrayContaining`.

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-23.0/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ The `expect.hasAssertions()` call ensures that the `prepareState` callback actua

### `expect.not.arrayContaining(array)`

`expect.not.arrayContaining(array)` matches a received array which contains none of the elements in the expected array. That is, the expected array **is not a subset** of the received array.
`expect.not.arrayContaining(array)` matches a received array which does not contain all of the elements in the expected array. That is, the expected array **is not a subset** of the received array.

It is the inverse of `expect.arrayContaining`.

Expand Down

0 comments on commit 9621416

Please sign in to comment.