Skip to content

docs: tweaks #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/guides/using-with-vue-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ shallow(Component, {
})
```

> **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.
> **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.

## Testing components that use `router-link` or `router-view`

Expand Down
4 changes: 2 additions & 2 deletions docs/en/guides/using-with-vuex.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ The downside is that when a test breaks, it can be difficult to find where the p
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:

```js
// store-config.spec.js

import mutations from './mutations'
import getters from './getters'

Expand All @@ -354,8 +356,6 @@ export default {
```

```js
// store-config.spec.js

import { createLocalVue } from '@vue/test-utils'
import Vuex from 'vuex'
import storeConfig from './store-config'
Expand Down