Skip to content

Commit

Permalink
docs: fix increasesBy description (#7121)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopeless authored Dec 24, 2024
1 parent 61b3016 commit b700d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -1688,10 +1688,10 @@ Asserts that a `modifier` increases a numeric `object`'s `property` or a `modifi
```ts
import { assert, test } from 'vitest'

test('assert.increases', () => {
test('assert.increasesBy', () => {
const obj = { val: 10 }
function fn() { obj.val += 10 };
assert.increases(fn, obj, 'val', 10)
assert.increasesBy(fn, obj, 'val', 10)
})
```

Expand Down

0 comments on commit b700d26

Please sign in to comment.