Skip to content

Commit

Permalink
docs: fix typo (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 authored Mar 28, 2022
1 parent 8189955 commit 255a713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -1109,7 +1109,7 @@ snapshots
sell('apples')
sell('bananas')

expect(sell).toHaveNthReturnedWith(2, { procuct: 'bananas' })
expect(sell).toHaveNthReturnedWith(2, { product: 'bananas' })
})
```
Expand Down

0 comments on commit 255a713

Please sign in to comment.