diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/server/contact-form.ts | 5 | ||||
-rw-r--r-- | server/tests/api/server/email.ts | 5 |
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 () { |