From bf8d8514891120d1e42b66d385f1df677dce080a Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Sun, 11 Feb 2018 17:55:15 +0900 Subject: [PATCH 1/3] Update using-with-vuex.md --- docs/en/guides/using-with-vuex.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/guides/using-with-vuex.md b/docs/en/guides/using-with-vuex.md index 45771e8da..3c151ff89 100644 --- a/docs/en/guides/using-with-vuex.md +++ b/docs/en/guides/using-with-vuex.md @@ -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' @@ -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' From a195fe1cc959f6a21449905e1bf22a5951fabe14 Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Sun, 11 Feb 2018 17:57:42 +0900 Subject: [PATCH 2/3] Update using-with-vue-router.md --- docs/en/guides/using-with-vue-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/guides/using-with-vue-router.md b/docs/en/guides/using-with-vue-router.md index 2a1c8067f..d5a7a9816 100644 --- a/docs/en/guides/using-with-vue-router.md +++ b/docs/en/guides/using-with-vue-router.md @@ -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 cannot 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` From 7102f79982934e2029513db744fb83d6ceee70ee Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Sun, 11 Feb 2018 17:58:18 +0900 Subject: [PATCH 3/3] Update using-with-vue-router.md --- docs/en/guides/using-with-vue-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/guides/using-with-vue-router.md b/docs/en/guides/using-with-vue-router.md index d5a7a9816..d94be1360 100644 --- a/docs/en/guides/using-with-vue-router.md +++ b/docs/en/guides/using-with-vue-router.md @@ -18,7 +18,7 @@ shallow(Component, { }) ``` -> **Note:** Installing Vue Router on a localVue also adds `$route` and `$router` as read-only properties to a localVue. This means you cannot use the `mocks` option to overwrite `$route` and `$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`