Skip to content

Commit

Permalink
docs: grammar fix (#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahhh committed Mar 2, 2024
1 parent e4f2cec commit 14ee16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/expect.md
Expand Up @@ -836,7 +836,7 @@ test('spy function', () => {

- **Type**: `(...args: any[]) => Awaitable<void>`

This assertion checks if a function was called with certain parameters at it's last invocation. Requires a spy function to be passed to `expect`.
This assertion checks if a function was called with certain parameters at its last invocation. Requires a spy function to be passed to `expect`.

```ts
import { expect, test, vi } from 'vitest'
Expand Down Expand Up @@ -950,7 +950,7 @@ test('spy function returns a product', () => {

- **Type**: `(returnValue: any) => Awaitable<void>`

You can call this assertion to check if a function has successfully returned a value with certain parameters on it's last invoking. Requires a spy function to be passed to `expect`.
You can call this assertion to check if a function has successfully returned a value with certain parameters on its last invoking. Requires a spy function to be passed to `expect`.

```ts
import { expect, test, vi } from 'vitest'
Expand Down

0 comments on commit 14ee16d

Please sign in to comment.