Skip to content

Commit b2b5321

Browse files
authored
docs: fix typo (#556)
1 parent 5d0bd1f commit b2b5321

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/guide/mocking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('purchasing flow', () => {
5959

6060
Mocking functions can be split up into two different categories; *spying & mocking*.
6161

62-
Sometimes all you need is to validate wether or not a specific function has been called (and possibly which arguments were passed). In these cases a spy would be all we need which you can use directly with `vi.spyOn()` ([read more here](/api/#vi-spyon)).
62+
Sometimes all you need is to validate whether or not a specific function has been called (and possibly which arguments were passed). In these cases a spy would be all we need which you can use directly with `vi.spyOn()` ([read more here](/api/#vi-spyon)).
6363

6464
However spies can only help you **spy** on functions, they are not able to alter the implementation of those functions. In the case where we do need to create a fake (or mocked) version of a function we can use `vi.fn()` ([read more here](/api/#vi-fn)).
6565

0 commit comments

Comments
 (0)