Skip to content

Commit d8f5d9d

Browse files
committed
fix copy paste artifact: restoring -> resetting
1 parent dc736d6 commit d8f5d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/mock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ await asyncMock() // throws "Async error"
170170
Does what `mockClear` does and resets inner implementation to the original function.
171171
This also resets all "once" implementations.
172172

173-
Note that restoring a mock from `vi.fn()` will set implementation to an empty function that returns `undefined`.
174-
Restoring a mock from `vi.fn(impl)` will restore implementation to `impl`.
173+
Note that resetting a mock from `vi.fn()` will set implementation to an empty function that returns `undefined`.
174+
resetting a mock from `vi.fn(impl)` will restore implementation to `impl`.
175175

176176
This is useful when you want to reset a mock to its original state.
177177

0 commit comments

Comments
 (0)