diff --git a/webapp/components/NotificationMenu/NotificationMenu.vue b/webapp/components/NotificationMenu/NotificationMenu.vue index 9b666be4b..e18b84159 100644 --- a/webapp/components/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/NotificationMenu/NotificationMenu.vue @@ -23,12 +23,7 @@ - + {{ $t('notifications.markAllAsRead') }} diff --git a/webapp/pages/notifications/index.spec.js b/webapp/pages/notifications/index.spec.js index 1d397ee2e..2ed362517 100644 --- a/webapp/pages/notifications/index.spec.js +++ b/webapp/pages/notifications/index.spec.js @@ -123,9 +123,7 @@ describe('PostIndex', () => { beforeEach(() => { mocks.$apollo.mutate = jest.fn().mockRejectedValueOnce({ message: 'Some error message' }) wrapper = Wrapper() - wrapper - .find(NotificationsTable) - .vm.$emit('markAllAsRead', 'notificationSourceId') + wrapper.find(NotificationsTable).vm.$emit('markAllAsRead', 'notificationSourceId') }) it('shows an error message if there is an error', () => { @@ -158,9 +156,7 @@ describe('PostIndex', () => { mocks.$apollo.mutate = jest.fn().mockRejectedValueOnce({ message: 'Some error message' }) wrapper = Wrapper() // FIXME Should I remove next line? - wrapper - .find(NotificationsTable) - .vm.$emit('markAllAsRead', 'notificationSourceId') + wrapper.find(NotificationsTable).vm.$emit('markAllAsRead', 'notificationSourceId') }) it('shows an error message if there is an error', () => { diff --git a/webapp/pages/notifications/index.vue b/webapp/pages/notifications/index.vue index 803deb1e2..4f0be5f34 100644 --- a/webapp/pages/notifications/index.vue +++ b/webapp/pages/notifications/index.vue @@ -18,12 +18,7 @@ - + {{ $t('notifications.markAllAsRead') }}