mock route params

This commit is contained in:
Moriz Wahl 2022-10-19 09:21:08 +02:00
parent 61ae38065c
commit 25001ce6ab

View File

@ -56,6 +56,10 @@ describe('PostSlug', () => {
},
$route: {
hash: '',
params: {
slug: 'slug',
id: 'id',
},
},
// If you are mocking the router, then don't use VueRouter with localVue: https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html
$router: {