From 25001ce6abcbcadd06325f6fc02fe413587c4364 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 19 Oct 2022 09:21:08 +0200 Subject: [PATCH] mock route params --- webapp/pages/post/_id/_slug/index.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/pages/post/_id/_slug/index.spec.js b/webapp/pages/post/_id/_slug/index.spec.js index 4737386ef..2dd4522b2 100644 --- a/webapp/pages/post/_id/_slug/index.spec.js +++ b/webapp/pages/post/_id/_slug/index.spec.js @@ -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: {