Merge pull request #17856 from overleaf/rh-deletion-email-update

[web] Use securityAlert template for user deletion email

GitOrigin-RevId: 60dfef18946710f5d5df17daca1a0bdc9800519b
This commit is contained in:
roo hutton
2024-04-12 08:06:40 +00:00
committed by Copybot
parent 754609f379
commit 03fb015f8f
3 changed files with 6 additions and 27 deletions
@@ -263,10 +263,12 @@ describe('UserDeleter', function () {
await this.UserDeleter.promises.deleteUser(this.userId, {})
const emailOptions = {
to: 'bob@bob.com',
action: 'account deleted',
actionDescribed: 'your Overleaf account was deleted',
}
expect(
this.EmailHandler.promises.sendEmail
).to.have.been.calledWith('deletedAccount', emailOptions)
).to.have.been.calledWith('securityAlert', emailOptions)
})
})