diff --git a/frontend/src/views/NotFoundPage.spec.js b/frontend/src/views/NotFoundPage.spec.js index 709b24807..c14f03b4f 100644 --- a/frontend/src/views/NotFoundPage.spec.js +++ b/frontend/src/views/NotFoundPage.spec.js @@ -3,11 +3,15 @@ import NotFoundPage from './NotFoundPage' const localVue = global.localVue +const mocks = { + $t: jest.fn((t) => t), +} + describe('NotFoundPage', () => { let wrapper const Wrapper = () => { - return mount(NotFoundPage, { localVue }) + return mount(NotFoundPage, { localVue, mocks }) } describe('mount', () => { @@ -16,7 +20,11 @@ describe('NotFoundPage', () => { }) it('has a svg', () => { - expect(wrapper.find('svg').exists()).toBeTruthy() + expect(wrapper.find('svg.test-404').exists()).toBeTruthy() + }) + + it('has a back button', () => { + expect(wrapper.find('.test-back').exists()).toBeTruthy() }) }) }) diff --git a/frontend/src/views/NotFoundPage.vue b/frontend/src/views/NotFoundPage.vue index 2efa6a4dc..3fe01d091 100755 --- a/frontend/src/views/NotFoundPage.vue +++ b/frontend/src/views/NotFoundPage.vue @@ -9,6 +9,7 @@
- {{ $t('back') }} + + {{ $t('back') }} +