Skip to content

Commit 46ac6fc

Browse files
Fix regex in mustMatch and mustNotMatch examples (#872)
1 parent 1080ff3 commit 46ac6fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/valid-title.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ specific Jest test function groups (`describe`, `test`, and `it`).
204204
Examples of **incorrect** code when using `mustMatch`:
205205

206206
```js
207-
// with mustMatch: '$that'
207+
// with mustMatch: '^that'
208208
describe('the correct way to do things', () => {});
209209
fit('this there!', () => {});
210210

211-
// with mustMatch: { test: '$that' }
211+
// with mustMatch: { test: '^that' }
212212
describe('the tests that will be run', () => {});
213213
test('the stuff works', () => {});
214214
xtest('errors that are thrown have messages', () => {});
@@ -217,11 +217,11 @@ xtest('errors that are thrown have messages', () => {});
217217
Examples of **correct** code when using `mustMatch`:
218218

219219
```js
220-
// with mustMatch: '$that'
220+
// with mustMatch: '^that'
221221
describe('that thing that needs to be done', () => {});
222222
fit('that this there!', () => {});
223223

224-
// with mustMatch: { test: '$that' }
224+
// with mustMatch: { test: '^that' }
225225
describe('the tests that will be run', () => {});
226226
test('that the stuff works', () => {});
227227
xtest('that errors that thrown have messages', () => {});

0 commit comments

Comments
 (0)