mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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 () => {
|
it('sends NO notification when another post is posted', async () => {
|
||||||
|
jest.clearAllMocks()
|
||||||
authenticatedUser = await groupMember.toJson()
|
authenticatedUser = await groupMember.toJson()
|
||||||
await markAllAsRead()
|
await markAllAsRead()
|
||||||
authenticatedUser = await postAuthor.toJson()
|
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', () => {
|
describe('group member unmutes group again but disables email', () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user