Skip to content

Commit

Permalink
fix(valid-expect-in-promise): rewrite rule description to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 3, 2021
1 parent a1dced4 commit 16fad4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ installations requiring long-term consistency.
| [require-top-level-describe](docs/rules/require-top-level-describe.md) | Require test cases and hooks to be inside a `describe` block | | |
| [valid-describe](docs/rules/valid-describe.md) | Enforce valid `describe()` callback | ![recommended][] | |
| [valid-expect](docs/rules/valid-expect.md) | Enforce valid `expect()` usage | ![recommended][] | |
| [valid-expect-in-promise](docs/rules/valid-expect-in-promise.md) | Enforce having return statement when testing with promises | ![recommended][] | |
| [valid-expect-in-promise](docs/rules/valid-expect-in-promise.md) | Ensure promises that have expectations in their chain are valid | ![recommended][] | |
| [valid-title](docs/rules/valid-title.md) | Enforce valid titles | ![recommended][] | ![fixable][] |

<!-- end base rules list -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/valid-expect-in-promise.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enforce having return statement when testing with promises (`valid-expect-in-promise`)
# Ensure promises that have expectations in their chain are valid (`valid-expect-in-promise`)

Ensure to return promise when having assertions in `then` or `catch` block of
promise
Expand Down
3 changes: 2 additions & 1 deletion src/rules/valid-expect-in-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export default createRule({
meta: {
docs: {
category: 'Best Practices',
description: 'Enforce having return statement when testing with promises',
description:
'Ensure promises that have expectations in their chain are valid',
recommended: 'error',
},
messages: {
Expand Down

0 comments on commit 16fad4e

Please sign in to comment.