Skip to content

Commit

Permalink
docs(no-conditional-tests.md): correct the correct examples (vitest-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda authored Aug 18, 2024
1 parent d914f03 commit dfbf02a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/rules/no-conditional-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ Examples of **correct** code for this rule:

```js
describe('my tests', () => {
if (Math.random() > 0.5) {
it('is awesome', () => {
doTheThing()
})
}
it('is awesome', () => {
doTheThing()
})
})
```

0 comments on commit dfbf02a

Please sign in to comment.