diff --git a/backend/src/middleware/notifications/notificationsMiddleware.spec.js b/backend/src/middleware/notifications/notificationsMiddleware.spec.js
index acdb6afe8..b737768f2 100644
--- a/backend/src/middleware/notifications/notificationsMiddleware.spec.js
+++ b/backend/src/middleware/notifications/notificationsMiddleware.spec.js
@@ -275,9 +275,6 @@ describe('notifications', () => {
})
describe('updates the post and mentions me again', () => {
- const expectedUpdatedContent =
- '
One more mention to
@al-capone
and again:
@al-capone
and again
@al-capone
'
-
const updatePostAction = async () => {
const updatedContent = `
One more mention to
@@ -307,6 +304,8 @@ describe('notifications', () => {
}
it('creates no duplicate notification for the same resource', async () => {
+ const expectedUpdatedContent =
+ '
One more mention to
@al-capone
and again:
@al-capone
and again
@al-capone
'
await createPostAction()
await updatePostAction()
const expected = expect.objectContaining({
@@ -347,7 +346,7 @@ describe('notifications', () => {
await mutate({ mutation, variables: { id: 'p47' } })
}
- describe('but the next mentioning happens after the notification was marked as read', () => {
+ describe('but the next mention happens after the notification was marked as read', () => {
it('sets the `read` attribute to false again', async () => {
await createPostAction()
await markAsReadAction()
diff --git a/webapp/components/notifications/NotificationList/NotificationList.vue b/webapp/components/notifications/NotificationList/NotificationList.vue
index aac040785..d956f6129 100644
--- a/webapp/components/notifications/NotificationList/NotificationList.vue
+++ b/webapp/components/notifications/NotificationList/NotificationList.vue
@@ -24,7 +24,7 @@ export default {
},
},
methods: {
- async markAsRead(notificationSourceId) {
+ markAsRead(notificationSourceId) {
this.$emit('markAsRead', notificationSourceId)
},
},