From 46ac6fc5614a4ed84575abcd797339238fded628 Mon Sep 17 00:00:00 2001 From: Cas Cornelissen Date: Fri, 17 Sep 2021 07:42:13 +0200 Subject: [PATCH] Fix regex in mustMatch and mustNotMatch examples (#872) --- docs/rules/valid-title.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rules/valid-title.md b/docs/rules/valid-title.md index 53204bca3..a5edda67e 100644 --- a/docs/rules/valid-title.md +++ b/docs/rules/valid-title.md @@ -204,11 +204,11 @@ specific Jest test function groups (`describe`, `test`, and `it`). Examples of **incorrect** code when using `mustMatch`: ```js -// with mustMatch: '$that' +// with mustMatch: '^that' describe('the correct way to do things', () => {}); fit('this there!', () => {}); -// with mustMatch: { test: '$that' } +// with mustMatch: { test: '^that' } describe('the tests that will be run', () => {}); test('the stuff works', () => {}); xtest('errors that are thrown have messages', () => {}); @@ -217,11 +217,11 @@ xtest('errors that are thrown have messages', () => {}); Examples of **correct** code when using `mustMatch`: ```js -// with mustMatch: '$that' +// with mustMatch: '^that' describe('that thing that needs to be done', () => {}); fit('that this there!', () => {}); -// with mustMatch: { test: '$that' } +// with mustMatch: { test: '^that' } describe('the tests that will be run', () => {}); test('that the stuff works', () => {}); xtest('that errors that thrown have messages', () => {});