Resolve issue of page not found when opening new tab
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Id46f9f663c456a7d09b55d6d322b00785df4cbe7
diff --git a/tests/unit/AppNavigation.spec.js b/tests/unit/AppNavigation.spec.js
index ab96204..b37c1e4 100644
--- a/tests/unit/AppNavigation.spec.js
+++ b/tests/unit/AppNavigation.spec.js
@@ -1,13 +1,17 @@
import { mount, createWrapper } from '@vue/test-utils';
import AppNavigation from '@/components/AppNavigation';
import Vue from 'vue';
+import VueRouter from 'vue-router';
import { BootstrapVue } from 'bootstrap-vue';
describe('AppNavigation.vue', () => {
let wrapper;
Vue.use(BootstrapVue);
+ Vue.use(VueRouter);
+ const router = new VueRouter();
wrapper = mount(AppNavigation, {
+ router,
mocks: {
$t: (key) => key,
},