Test that their is no email send after a moderator message.

This commit is contained in:
elweyn 2023-07-01 11:53:54 +02:00
parent 4b0cfb8181
commit 000ac24865

View File

@ -219,6 +219,10 @@ describe('ContributionMessageResolver', () => {
})
describe('contribution message type MODERATOR', () => {
beforeAll(() => {
jest.clearAllMocks()
})
it('creates ContributionMessage', async () => {
await expect(
mutate({
@ -243,6 +247,10 @@ describe('ContributionMessageResolver', () => {
}),
)
})
it("don't call sendAddedContributionMessageEmail", () => {
expect(sendAddedContributionMessageEmail).not.toBeCalled()
})
})
})
})