aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-15 14:19:07 +0200
committerChocobozzz <me@florianbigard.com>2022-04-15 14:19:07 +0200
commit3c7ddd7daa61d35c6fd0a992389a92599a246779 (patch)
tree779fde7a19a5bd5e527e14a532a377c16d557082 /server/tests/api
parentec2fa0d0b1d290f6c8de257fa7f1e2e3f28b8dfa (diff)
downloadPeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.tar.gz
PeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.tar.zst
PeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.zip
Fix email links displayed twice as text
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/contact-form.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/api/server/contact-form.ts b/server/tests/api/server/contact-form.ts
index f3facb04a..4f01f6fd5 100644
--- a/server/tests/api/server/contact-form.ts
+++ b/server/tests/api/server/contact-form.ts
@@ -61,6 +61,13 @@ describe('Test contact form', function () {
61 expect(email['text']).contains('my super message') 61 expect(email['text']).contains('my super message')
62 }) 62 })
63 63
64 it('Should not have duplicated email adress in text message', async function () {
65 const text = emails[0]['text'] as string
66
67 const matches = text.match(/toto@example.com/g)
68 expect(matches).to.have.lengthOf(1)
69 })
70
64 it('Should not be able to send another contact form because of the anti spam checker', async function () { 71 it('Should not be able to send another contact form because of the anti spam checker', async function () {
65 this.timeout(10000) 72 this.timeout(10000)
66 73