Skip to content

Commit

Permalink
Fix regex in mustMatch and mustNotMatch examples (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
cascornelissen committed Sep 17, 2021
1 parent 1080ff3 commit 46ac6fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/valid-title.md
Expand Up @@ -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', () => {});
Expand All @@ -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', () => {});
Expand Down

0 comments on commit 46ac6fc

Please sign in to comment.