From 25c6d5f311801ba1beadc06247793bbe3a368fea Mon Sep 17 00:00:00 2001 From: Mattias Ahlsen Date: Mon, 18 Jun 2018 20:20:17 +0200 Subject: [PATCH 1/2] Fixed small error in documentation for expect.not.arrayContaining(array). Fixes #6432. --- docs/ExpectAPI.md | 2 +- website/versioned_docs/version-23.0/ExpectAPI.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index 8cfc199be6fa..ab568569a1ec 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -263,7 +263,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`. diff --git a/website/versioned_docs/version-23.0/ExpectAPI.md b/website/versioned_docs/version-23.0/ExpectAPI.md index de8a07b7adc3..e71d633a4b6d 100644 --- a/website/versioned_docs/version-23.0/ExpectAPI.md +++ b/website/versioned_docs/version-23.0/ExpectAPI.md @@ -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`. From 4b015146aac08ec58eab609c8817c602ccad5143 Mon Sep 17 00:00:00 2001 From: Mattias Ahlsen Date: Mon, 18 Jun 2018 20:41:17 +0200 Subject: [PATCH 2/2] Added pull request #6491 to changelog. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72b2a46da94f..0a234659689f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Fixes +- `[docs]` Fixed error in documentation for expect.not.arrayContaining(array). ([#6491](https://github.com/facebook/jest/pull/6491)) - `[jest-config]` Add missing options to the `defaults` object ([#6428](https://github.com/facebook/jest/pull/6428)) - `[expect]` Using symbolic property names in arrays no longer causes the `toEqual` matcher to fail ([#6391](https://github.com/facebook/jest/pull/6391)) - `[expect]` `toEqual` no longer tries to compare non-enumerable symbolic properties, to be consistent with non-symbolic properties. ([#6398](https://github.com/facebook/jest/pull/6398))