diff --git a/backend/src/middleware/notifications/posts-in-groups.spec.ts b/backend/src/middleware/notifications/posts-in-groups.spec.ts index 86e700d1c..742685816 100644 --- a/backend/src/middleware/notifications/posts-in-groups.spec.ts +++ b/backend/src/middleware/notifications/posts-in-groups.spec.ts @@ -295,6 +295,7 @@ describe('notify group members of new posts in group', () => { }) it('sends NO notification when another post is posted', async () => { + jest.clearAllMocks() authenticatedUser = await groupMember.toJson() await markAllAsRead() authenticatedUser = await postAuthor.toJson() @@ -323,6 +324,10 @@ describe('notify group members of new posts in group', () => { }) }) + it('sends NO email', () => { + expect(sendMailMock).not.toHaveBeenCalled() + }) + describe('group member unmutes group again but disables email', () => { beforeAll(async () => { jest.clearAllMocks()