Skip to content

Commit 12f3e5a

Browse files
38elementseddyerburgh
authored andcommitted
docs: tweaks (#421)
1 parent 7101b07 commit 12f3e5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/en/guides/using-with-vue-router.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shallow(Component, {
1818
})
1919
```
2020

21-
> **Note:** Installing Vue Router on a localVue also adds `$route` and `$router` as read-only properties. This means you cannot use the `mocks` option to overwrite `$route` or `$router` when mounting a component using a localVue with VueRouter installed.
21+
> **Note:** Installing Vue Router on a localVue also adds `$route` and `$router` as read-only properties to a localVue. This means you can not use the `mocks` option to overwrite `$route` and `$router` when mounting a component using a localVue with VueRouter installed.
2222
2323
## Testing components that use `router-link` or `router-view`
2424

docs/en/guides/using-with-vuex.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ The downside is that when a test breaks, it can be difficult to find where the p
341341
Let's write a test. When we create a store, we'll use `localVue` to avoid polluting the Vue base constructor. The test creates a store using the store-config.js export:
342342

343343
```js
344+
// store-config.spec.js
345+
344346
import mutations from './mutations'
345347
import getters from './getters'
346348

@@ -354,8 +356,6 @@ export default {
354356
```
355357

356358
```js
357-
// store-config.spec.js
358-
359359
import { createLocalVue } from '@vue/test-utils'
360360
import Vuex from 'vuex'
361361
import storeConfig from './store-config'

0 commit comments

Comments
 (0)