aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 15:56:13 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 15:56:13 +0100
commitb9cf3fb6381f71c976fbe515f728082d90a9c437 (patch)
tree4d9436c709c504c2c54145e53ddac963c6f96f3a /server/tests/api
parent10c8b0b743ae5aa7e89c7fe5745821278b71d52c (diff)
downloadPeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.tar.gz
PeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.tar.zst
PeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.zip
Fix email footer
Do not include notif preferences in contact form email
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/contact-form.ts5
-rw-r--r--server/tests/api/server/email.ts5
2 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/api/server/contact-form.ts b/server/tests/api/server/contact-form.ts
index 8d1270358..c0965d9d1 100644
--- a/server/tests/api/server/contact-form.ts
+++ b/server/tests/api/server/contact-form.ts
@@ -83,6 +83,11 @@ describe('Test contact form', function () {
83 }) 83 })
84 }) 84 })
85 85
86 it('Should not have the manage preferences link in the email', async function () {
87 const email = emails[0]
88 expect(email['text']).to.not.contain('Manage your notification preferences')
89 })
90
86 after(async function () { 91 after(async function () {
87 MockSmtpServer.Instance.kill() 92 MockSmtpServer.Instance.kill()
88 93
diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts
index 05c89d2a3..53f96a94f 100644
--- a/server/tests/api/server/email.ts
+++ b/server/tests/api/server/email.ts
@@ -279,6 +279,11 @@ describe('Test emails', function () {
279 expect(email['subject']).contains(' unblacklisted') 279 expect(email['subject']).contains(' unblacklisted')
280 expect(email['text']).contains('my super user video') 280 expect(email['text']).contains('my super user video')
281 }) 281 })
282
283 it('Should have the manage preferences link in the email', async function () {
284 const email = emails[6]
285 expect(email['text']).to.contain('Manage your notification preferences')
286 })
282 }) 287 })
283 288
284 describe('When verifying a user email', function () { 289 describe('When verifying a user email', function () {