Skip to content

Commit c325f40

Browse files
committed
fixup: docs
1 parent efe2f8c commit c325f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ By default, if arguments do not match, a vitest-when stub will no-op and return
271271
```ts
272272
const spy = vi.fn().mockReturnValue('you messed up!')
273273

274-
subject.when(spy).calledWith('hello').thenReturn('world')
274+
when(spy).calledWith('hello').thenReturn('world')
275275

276276
spy('hello') // "world"
277277
spy('jello') // "you messed up!"

0 commit comments

Comments
 (0)