From b404355cd9e0c0b3a26e7c6755f19198d408e5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 16 Nov 2020 15:55:33 +0100 Subject: [PATCH] Fix linting --- webapp/components/NotificationMenu/NotificationMenu.vue | 7 +------ webapp/pages/notifications/index.spec.js | 8 ++------ webapp/pages/notifications/index.vue | 7 +------ 3 files changed, 4 insertions(+), 18 deletions(-) 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') }}