Skip to content

Commit

Permalink
fixup: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Nov 4, 2024
1 parent efe2f8c commit c325f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ By default, if arguments do not match, a vitest-when stub will no-op and return
```ts
const spy = vi.fn().mockReturnValue('you messed up!')

subject.when(spy).calledWith('hello').thenReturn('world')
when(spy).calledWith('hello').thenReturn('world')

spy('hello') // "world"
spy('jello') // "you messed up!"
Expand Down

0 comments on commit c325f40

Please sign in to comment.