Skip to content

Commit 5b34901

Browse files
gurpreetatwalnovemberborn
authored andcommitted
Fix examples for test-title-format
The examples incorrect enabled the `test-title` rule instead of the `test-title-format` rule.
1 parent c599470 commit 5b34901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/test-title-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For example, titles like `'Should throw when invalid.'`, `'Should fail when call
1010
## Fail
1111

1212
```js
13-
/* eslint ava/test-title: ["error", {format: "^Should"}] */
13+
/* eslint ava/test-title-format: ["error", {format: "^Should"}] */
1414
import test from 'ava';
1515

1616
test('Not starting with `Should`', t => {
@@ -19,7 +19,7 @@ test('Not starting with `Should`', t => {
1919
```
2020

2121
```js
22-
/* eslint ava/test-title: ["error", {format: "\\.$"}] */
22+
/* eslint ava/test-title-format: ["error", {format: "\\.$"}] */
2323
import test from 'ava';
2424

2525
test('Doesn\'t end with a dot', t => {
@@ -31,7 +31,7 @@ test('Doesn\'t end with a dot', t => {
3131
## Pass
3232

3333
```js
34-
/* eslint ava/test-title: ["error", {format: "^Should"}] */
34+
/* eslint ava/test-title-format: ["error", {format: "^Should"}] */
3535
import test from 'ava';
3636

3737
test('Should pass tests', t => {
@@ -44,7 +44,7 @@ test('Should behave as expected', t => {
4444
```
4545

4646
```js
47-
/* eslint ava/test-title: ["error", {format: "\\.$"}] */
47+
/* eslint ava/test-title-format: ["error", {format: "\\.$"}] */
4848
import test from 'ava';
4949

5050
test('End with a dot.', t => {

0 commit comments

Comments
 (0)