mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
docs: fix typo (#1044)
This commit is contained in:
parent
8189955c47
commit
255a7138a0
@ -1096,7 +1096,7 @@ snapshots
|
||||
|
||||
### toHaveNthReturnedWith
|
||||
|
||||
- **Type**: `(returnValue: any) => Awaitable<void>`
|
||||
- **Type**: `(time: number, returnValue: any) => Awaitable<void>`
|
||||
|
||||
You can call this assertion to check if a function has successfully returned a value with certain parameters on a certain call. Requires a spy function to be passed to `expect`.
|
||||
|
||||
@ -1109,7 +1109,7 @@ snapshots
|
||||
sell('apples')
|
||||
sell('bananas')
|
||||
|
||||
expect(sell).toHaveNthReturnedWith(2, { procuct: 'bananas' })
|
||||
expect(sell).toHaveNthReturnedWith(2, { product: 'bananas' })
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user