Skip to content

Commit 27f97f1

Browse files
committed
fixup: update links in README
1 parent d30dd8c commit 27f97f1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ You should call `vi.resetAllMocks()` in your suite's `afterEach` hook to remove
6969

7070
[vitest's mock functions]: https://vitest.dev/api/mock.html
7171
[stubs]: https://en.wikipedia.org/wiki/Test_stub
72-
[when]: #whenspy-tfunc-stubwrappertfunc
73-
[called-with]: #calledwithargs-targs-stubtargs-treturn
74-
[then-return]: #thenreturnvalue-treturn
75-
[then-resolve]: #thenresolvevalue-treturn
76-
[then-throw]: #thenthrowerror-unknown
77-
[then-reject]: #thenrejecterror-unknown
78-
[then-do]: #thendocallback-args-targs--treturn
72+
[when]: #whenmock-tfunc-options-whenoptions-stubwrappertfunc
73+
[called-with]: #calledwithargs-parameterstfunc-stubtfunc
74+
[then-return]: #thenreturnvalue-treturn---mocktfunc
75+
[then-resolve]: #thenresolvevalue-treturn---mocktfunc
76+
[then-throw]: #thenthrowerror-unknown---mocktfunc
77+
[then-reject]: #thenrejecterror-unknown---mocktfunc
78+
[then-do]: #thendocallback-args-targs--treturn---mocktfunc
7979

8080
### Why not vanilla Vitest mocks?
8181

@@ -374,7 +374,7 @@ expect(() => mock('hello')).toThrow('this is bad')
374374
expect(() => mock('hello')).toThrow('this is bad')
375375
```
376376

377-
### `.thenReject(error: unknown)`
377+
### `.thenReject(error: unknown) -> Mock<TFunc>`
378378

379379
When the stubbing is satisfied, reject a `Promise` with `error`.
380380

0 commit comments

Comments
 (0)