store.someAction.mockResolvedValue('some value')
```
-If you are interesting in learning more tricks like this, you should check out the Testing lessons on [Mastering Pinia](https://masteringpinia.com/lessons/exercise-mocking-stores-introduction).
+If you are interested in learning more tricks like this, you should check out the Testing lessons on [Mastering Pinia](https://masteringpinia.com/lessons/exercise-mocking-stores-introduction).
### Specifying the createSpy function
console.log(`Start "${name}" with params [${args.join(', ')}].`)
// this will trigger if the action succeeds and after it has fully run.
- // it waits for any returned promised
+ // it waits for any returned promise
after((result) => {
console.log(
`Finished "${name}" after ${
* On top of these, it receives two functions that allow setting up a callback
* once the action finishes or when it fails.
*
- * It also returns a function to remove the callback. Note than when calling
+ * It also returns a function to remove the callback. Note that when calling
* `store.$onAction()` inside of a component, it will be automatically cleaned
* up when the component gets unmounted unless `detached` is set to true.
*