Fix linting

This commit is contained in:
Wolfgang Huß 2020-11-16 15:55:33 +01:00
parent e1ef6f807f
commit b404355cd9
3 changed files with 4 additions and 18 deletions

View File

@ -23,12 +23,7 @@
</nuxt-link>
</ds-flex-item>
<ds-flex-item :width="{ base: '50%' }" centered>
<ds-button
ghost
primary
@click="markAllAsRead"
data-test="markAllAsRead-button"
>
<ds-button ghost primary @click="markAllAsRead" data-test="markAllAsRead-button">
{{ $t('notifications.markAllAsRead') }}
</ds-button>
</ds-flex-item>

View File

@ -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', () => {

View File

@ -18,12 +18,7 @@
<ds-flex>
<ds-flex-item class="notifications-footer" :width="{ base: '90%' }" centered>
<ds-button
ghost
primary
@click="markAllAsRead"
data-test="markAllAsRead-button"
>
<ds-button ghost primary @click="markAllAsRead" data-test="markAllAsRead-button">
{{ $t('notifications.markAllAsRead') }}
</ds-button>
</ds-flex-item>