Skip to content

Commit 4762cce

Browse files
authored
docs(prefer-lowercase-title): fix rule name in examples (#968)
Follow up to #951
1 parent e7a9a9b commit 4762cce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/rules/prefer-lowercase-title.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ it('adds 1 + 2 to equal 3', () => {
2626

2727
```json
2828
{
29-
"jest/prefer-lowercase-name": [
29+
"jest/prefer-lowercase-title": [
3030
"error",
3131
{
3232
"ignore": ["describe", "test"]
@@ -50,23 +50,23 @@ By default, none of these options are enabled (the equivalent of
5050
Example of **correct** code for the `{ "ignore": ["describe"] }` option:
5151

5252
```js
53-
/* eslint jest/prefer-lowercase-name: ["error", { "ignore": ["describe"] }] */
53+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["describe"] }] */
5454

5555
describe('Uppercase description');
5656
```
5757

5858
Example of **correct** code for the `{ "ignore": ["test"] }` option:
5959

6060
```js
61-
/* eslint jest/prefer-lowercase-name: ["error", { "ignore": ["test"] }] */
61+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["test"] }] */
6262

6363
test('Uppercase description');
6464
```
6565

6666
Example of **correct** code for the `{ "ignore": ["it"] }` option:
6767

6868
```js
69-
/* eslint jest/prefer-lowercase-name: ["error", { "ignore": ["it"] }] */
69+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["it"] }] */
7070

7171
it('Uppercase description');
7272
```
@@ -82,7 +82,7 @@ By default, nothing is allowed (the equivalent of `{ "allowedPrefixes": [] }`).
8282
Example of **correct** code for the `{ "allowedPrefixes": ["GET"] }` option:
8383

8484
```js
85-
/* eslint jest/prefer-lowercase-name: ["error", { "allowedPrefixes": ["GET"] }] */
85+
/* eslint jest/prefer-lowercase-title: ["error", { "allowedPrefixes": ["GET"] }] */
8686

8787
describe('GET /live');
8888
```
@@ -95,7 +95,7 @@ title starting with an upper-case letter.
9595
Example of **correct** code for the `{ "ignoreTopLevelDescribe": true }` option:
9696

9797
```js
98-
/* eslint jest/prefer-lowercase-name: ["error", { "ignoreTopLevelDescribe": true }] */
98+
/* eslint jest/prefer-lowercase-title: ["error", { "ignoreTopLevelDescribe": true }] */
9999
describe('MyClass', () => {
100100
describe('#myMethod', () => {
101101
it('does things', () => {

0 commit comments

Comments
 (0)