diff --git a/docs/rules/prefer-to-be-null.md b/docs/rules/prefer-to-be-null.md index 7c0f96bcc..0ee83c3f8 100644 --- a/docs/rules/prefer-to-be-null.md +++ b/docs/rules/prefer-to-be-null.md @@ -5,7 +5,7 @@ asserting expections on null value. ## Rule details -This rule triggers a warning if `toBe()`, `isEqual()` or `toStrictEqual()` is +This rule triggers a warning if `toBe()`, `toEqual()` or `toStrictEqual()` is used to assert a null value. ```js @@ -21,7 +21,7 @@ The following patterns are considered warnings: ```js expect(null).toBe(null); -expect(null).isEqual(null); +expect(null).toEqual(null); expect(null).toStrictEqual(null); ``` diff --git a/docs/rules/prefer-to-be-undefined.md b/docs/rules/prefer-to-be-undefined.md index 57b4442e3..a2351e5ac 100644 --- a/docs/rules/prefer-to-be-undefined.md +++ b/docs/rules/prefer-to-be-undefined.md @@ -5,7 +5,7 @@ asserting expections on undefined value. ## Rule details -This rule triggers a warning if `toBe()`, `isEqual()` or `toStrictEqual()` is +This rule triggers a warning if `toBe()`, `toEqual()` or `toStrictEqual()` is used to assert an undefined value. ```js @@ -21,7 +21,7 @@ The following patterns are considered warnings: ```js expect(undefined).toBe(undefined); -expect(undefined).isEqual(undefined); +expect(undefined).toEqual(undefined); expect(undefined).toStrictEqual(undefined); ``` diff --git a/docs/rules/prefer-to-contain.md b/docs/rules/prefer-to-contain.md index b58452ee1..fa19c7fdb 100644 --- a/docs/rules/prefer-to-contain.md +++ b/docs/rules/prefer-to-contain.md @@ -5,7 +5,7 @@ asserting expectations on an array containing an object. ## Rule details -This rule triggers a warning if `toBe()`, `isEqual()` or `toStrictEqual()` is +This rule triggers a warning if `toBe()`, `toEqual()` or `toStrictEqual()` is used to assert object inclusion in an array ```js diff --git a/docs/rules/prefer-to-have-length.md b/docs/rules/prefer-to-have-length.md index 1a74387b0..b26e72bbd 100644 --- a/docs/rules/prefer-to-have-length.md +++ b/docs/rules/prefer-to-have-length.md @@ -5,7 +5,7 @@ asserting expectations on object's length property. ## Rule details -This rule triggers a warning if `toBe()`, `isEqual()` or `toStrictEqual()` is +This rule triggers a warning if `toBe()`, `toEqual()` or `toStrictEqual()` is used to assert object's length property. ```js