X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fcontact-form.ts;h=c0965d9d1bd429e3302a4048a4dd489fd471ed9c;hb=c977fd3ec931c059111ddb2b8d6ddbb20b6b99a1;hp=bd1b0e38aad9cc97a5dfda6df84da101c24c35c8;hpb=338eb9d33af690db716805fd2277bf68f473b58f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/contact-form.ts b/server/tests/api/server/contact-form.ts index bd1b0e38a..c0965d9d1 100644 --- a/server/tests/api/server/contact-form.ts +++ b/server/tests/api/server/contact-form.ts @@ -46,7 +46,7 @@ describe('Test contact form', function () { const email = emails[0] expect(email['from'][0]['address']).equal('test-admin@localhost') - expect(email['from'][0]['name']).equal('toto@example.com') + expect(email['replyTo'][0]['address']).equal('toto@example.com') expect(email['to'][0]['address']).equal('admin' + server.internalServerNumber + '@example.com') expect(email['subject']).contains('my subject') expect(email['text']).contains('my super message') @@ -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()