From b9cf3fb6381f71c976fbe515f728082d90a9c437 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Nov 2020 15:56:13 +0100 Subject: Fix email footer Do not include notif preferences in contact form email --- server/tests/api/server/contact-form.ts | 5 +++++ server/tests/api/server/email.ts | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'server/tests') 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 () { }) }) + it('Should not have the manage preferences link in the email', async function () { + const email = emails[0] + expect(email['text']).to.not.contain('Manage your notification preferences') + }) + after(async function () { MockSmtpServer.Instance.kill() 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 () { expect(email['subject']).contains(' unblacklisted') expect(email['text']).contains('my super user video') }) + + it('Should have the manage preferences link in the email', async function () { + const email = emails[6] + expect(email['text']).to.contain('Manage your notification preferences') + }) }) describe('When verifying a user email', function () { -- cgit v1.2.3