From e1ef6f807ff309afed68d92d471f2e0961758f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adem=C3=ADlson=20F=2E=20Tonato?= Date: Thu, 5 Nov 2020 20:23:27 +0000 Subject: [PATCH] fix: update tests for markAllAsRead --- webapp/pages/notifications/index.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/pages/notifications/index.spec.js b/webapp/pages/notifications/index.spec.js index 8b0f33693..1d397ee2e 100644 --- a/webapp/pages/notifications/index.spec.js +++ b/webapp/pages/notifications/index.spec.js @@ -104,14 +104,14 @@ describe('PostIndex', () => { }) }) - describe('markNotificationAsRead', () => { + describe('markAllAsRead', () => { let expectedParams beforeEach(() => { wrapper = Wrapper() - wrapper.find(NotificationsTable).vm.$emit('markNotificationAsRead', 'notificationSourceId') + wrapper.find(NotificationsTable).vm.$emit('markAllAsRead', 'notificationSourceId') }) - it('calls markNotificationAsRead mutation', () => { + it('calls markAllAsRead mutation', () => { expectedParams = { mutation: markAsReadMutation(), variables: { id: 'notificationSourceId' }, @@ -125,7 +125,7 @@ describe('PostIndex', () => { wrapper = Wrapper() wrapper .find(NotificationsTable) - .vm.$emit('markNotificationAsRead', 'notificationSourceId') + .vm.$emit('markAllAsRead', 'notificationSourceId') }) it('shows an error message if there is an error', () => { @@ -139,7 +139,7 @@ describe('PostIndex', () => { beforeEach(() => { wrapper = Wrapper() // FIXME Should I remove next line? - wrapper.find(NotificationsTable).vm.$emit('markNotificationAsRead', 'notificationSourceId') + wrapper.find(NotificationsTable).vm.$emit('markAllAsRead', 'notificationSourceId') }) // FIXME: I need to discover why this test isn't working =( @@ -160,7 +160,7 @@ describe('PostIndex', () => { // FIXME Should I remove next line? wrapper .find(NotificationsTable) - .vm.$emit('markNotificationAsRead', 'notificationSourceId') + .vm.$emit('markAllAsRead', 'notificationSourceId') }) it('shows an error message if there is an error', () => {