test that there is no email sent when no notification (#8362)

This commit is contained in:
Moriz Wahl 2025-04-11 23:49:31 +02:00 committed by GitHub
parent aedf8d93c7
commit 7a44e1aa4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()