docs: fix typo (#1044)

This commit is contained in:
alexzhang1030 2022-03-28 10:13:23 +08:00 committed by GitHub
parent 8189955c47
commit 255a7138a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' })
})
```