mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix linting
This commit is contained in:
parent
e1ef6f807f
commit
b404355cd9
@ -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>
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user