mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
test that there is no email sent when no notification (#8362)
This commit is contained in:
parent
aedf8d93c7
commit
7a44e1aa4e
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user