You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ja/guides/using-with-vue-router.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Using with vue-router
1
+
# Vue Router と一緒に使用する
2
2
3
-
## Installing vue-router in tests
3
+
## テストへ Vue Router のインストール
4
4
5
-
You should never install vue-router on the Vue base constructor in tests. Installing vue-router adds `$route`and`$router`as read-only properties on Vue prototype.
## Testing components that use router-link or router-view
20
+
## router-link または router-view を使用するコンポーネントテスト
21
21
22
-
When you install vue-router, the router-link and router-view components are registered. This means we can use them anywhere in our application without needing to import them.
Sometimes you want to test that a component does something with parameters from the `$route`and`$router`objects. To do that, you can pass custom mocks to the Vue instance.
0 commit comments