diff --git a/frontend/src/App.spec.js b/frontend/src/App.spec.js index 861e801a5..cc26f5135 100644 --- a/frontend/src/App.spec.js +++ b/frontend/src/App.spec.js @@ -54,7 +54,7 @@ describe('App', () => { }) it('has a component DashboardLayout', () => { - expect(wrapper.findComponent({ name: 'DashboardTemplate' }).exists()).toBe(true) + expect(wrapper.findComponent({ name: 'DashboardLayout' }).exists()).toBe(true) }) }) }) diff --git a/frontend/src/components/Auth/Navbar.vue b/frontend/src/components/Auth/Navbar.vue index 63e0daf04..49cc66415 100644 --- a/frontend/src/components/Auth/Navbar.vue +++ b/frontend/src/components/Auth/Navbar.vue @@ -19,7 +19,7 @@ - {{ $t('auth.navbar.overGradido') }} + {{ $t('auth.navbar.aboutGradido') }} {{ $t('signup') }} {{ $t('|') }} diff --git a/frontend/src/layouts/AuthLayout_gdd.spec.js b/frontend/src/layouts/AuthLayout_gdd.spec.js index 9cec46bff..09b064a05 100644 --- a/frontend/src/layouts/AuthLayout_gdd.spec.js +++ b/frontend/src/layouts/AuthLayout_gdd.spec.js @@ -1,6 +1,5 @@ import { mount, RouterLinkStub } from '@vue/test-utils' import AuthLayoutGdd from './AuthLayout_gdd' -import VueRouter from 'vue-router' const localVue = global.localVue @@ -16,18 +15,20 @@ describe('AuthLayoutGdd', () => { state: {}, commit: jest.fn(), }, + $route: { + meta: { + requiresAuth: false, + }, + }, } - localVue.use(VueRouter) - const router = new VueRouter() - const stubs = { RouterLink: RouterLinkStub, RouterView: true, } const Wrapper = () => { - return mount(AuthLayoutGdd, { localVue, mocks, stubs, router }) + return mount(AuthLayoutGdd, { localVue, mocks, stubs }) } describe('mount', () => { diff --git a/frontend/src/layouts/AuthLayout_gdd.vue b/frontend/src/layouts/AuthLayout_gdd.vue index c3d87ba7a..f0bc002f0 100644 --- a/frontend/src/layouts/AuthLayout_gdd.vue +++ b/frontend/src/layouts/AuthLayout_gdd.vue @@ -1,6 +1,6 @@