Skip to content

Commit 77d97fe

Browse files
docs: fix typos in types and documentation (#3080)
1 parent 84159b3 commit 77d97fe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/docs/cookbook/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const store = mockedStore(useSomeStore)
286286
store.someAction.mockResolvedValue('some value')
287287
```
288288

289-
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).
289+
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).
290290

291291
### Specifying the createSpy function
292292

packages/docs/core-concepts/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const unsubscribe = someStore.$onAction(
192192
console.log(`Start "${name}" with params [${args.join(', ')}].`)
193193

194194
// this will trigger if the action succeeds and after it has fully run.
195-
// it waits for any returned promised
195+
// it waits for any returned promise
196196
after((result) => {
197197
console.log(
198198
`Finished "${name}" after ${

packages/pinia/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export interface _StoreWithState<
366366
* On top of these, it receives two functions that allow setting up a callback
367367
* once the action finishes or when it fails.
368368
*
369-
* It also returns a function to remove the callback. Note than when calling
369+
* It also returns a function to remove the callback. Note that when calling
370370
* `store.$onAction()` inside of a component, it will be automatically cleaned
371371
* up when the component gets unmounted unless `detached` is set to true.
372372
*

0 commit comments

Comments
 (0)