aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/server/email.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts
index 17d9e902c..92768d9df 100644
--- a/server/tests/api/server/email.ts
+++ b/server/tests/api/server/email.ts
@@ -98,7 +98,7 @@ describe('Test emails', function () {
98 98
99 const email = emails[0] 99 const email = emails[0]
100 100
101 expect(email['from'][0]['name']).equal('localhost:' + server.port) 101 expect(email['from'][0]['name']).equal('PeerTube')
102 expect(email['from'][0]['address']).equal('test-admin@localhost') 102 expect(email['from'][0]['address']).equal('test-admin@localhost')
103 expect(email['to'][0]['address']).equal('user_1@example.com') 103 expect(email['to'][0]['address']).equal('user_1@example.com')
104 expect(email['subject']).contains('password') 104 expect(email['subject']).contains('password')
@@ -151,7 +151,7 @@ describe('Test emails', function () {
151 151
152 const email = emails[1] 152 const email = emails[1]
153 153
154 expect(email['from'][0]['name']).equal('localhost:' + server.port) 154 expect(email['from'][0]['name']).equal('PeerTube')
155 expect(email['from'][0]['address']).equal('test-admin@localhost') 155 expect(email['from'][0]['address']).equal('test-admin@localhost')
156 expect(email['to'][0]['address']).equal('create_password@example.com') 156 expect(email['to'][0]['address']).equal('create_password@example.com')
157 expect(email['subject']).contains('account') 157 expect(email['subject']).contains('account')
@@ -197,7 +197,7 @@ describe('Test emails', function () {
197 197
198 const email = emails[2] 198 const email = emails[2]
199 199
200 expect(email['from'][0]['name']).equal('localhost:' + server.port) 200 expect(email['from'][0]['name']).equal('PeerTube')
201 expect(email['from'][0]['address']).equal('test-admin@localhost') 201 expect(email['from'][0]['address']).equal('test-admin@localhost')
202 expect(email['to'][0]['address']).equal('admin' + server.internalServerNumber + '@example.com') 202 expect(email['to'][0]['address']).equal('admin' + server.internalServerNumber + '@example.com')
203 expect(email['subject']).contains('abuse') 203 expect(email['subject']).contains('abuse')
@@ -218,12 +218,12 @@ describe('Test emails', function () {
218 218
219 const email = emails[3] 219 const email = emails[3]
220 220
221 expect(email['from'][0]['name']).equal('localhost:' + server.port) 221 expect(email['from'][0]['name']).equal('PeerTube')
222 expect(email['from'][0]['address']).equal('test-admin@localhost') 222 expect(email['from'][0]['address']).equal('test-admin@localhost')
223 expect(email['to'][0]['address']).equal('user_1@example.com') 223 expect(email['to'][0]['address']).equal('user_1@example.com')
224 expect(email['subject']).contains(' blocked') 224 expect(email['subject']).contains(' blocked')
225 expect(email['text']).contains(' blocked') 225 expect(email['text']).contains(' blocked')
226 expect(email['text']).contains(reason) 226 expect(email['text']).contains('bad reason')
227 }) 227 })
228 228
229 it('Should send the notification email when unblocking a user', async function () { 229 it('Should send the notification email when unblocking a user', async function () {
@@ -236,7 +236,7 @@ describe('Test emails', function () {
236 236
237 const email = emails[4] 237 const email = emails[4]
238 238
239 expect(email['from'][0]['name']).equal('localhost:' + server.port) 239 expect(email['from'][0]['name']).equal('PeerTube')
240 expect(email['from'][0]['address']).equal('test-admin@localhost') 240 expect(email['from'][0]['address']).equal('test-admin@localhost')
241 expect(email['to'][0]['address']).equal('user_1@example.com') 241 expect(email['to'][0]['address']).equal('user_1@example.com')
242 expect(email['subject']).contains(' unblocked') 242 expect(email['subject']).contains(' unblocked')
@@ -256,7 +256,7 @@ describe('Test emails', function () {
256 256
257 const email = emails[5] 257 const email = emails[5]
258 258
259 expect(email['from'][0]['name']).equal('localhost:' + server.port) 259 expect(email['from'][0]['name']).equal('PeerTube')
260 expect(email['from'][0]['address']).equal('test-admin@localhost') 260 expect(email['from'][0]['address']).equal('test-admin@localhost')
261 expect(email['to'][0]['address']).equal('user_1@example.com') 261 expect(email['to'][0]['address']).equal('user_1@example.com')
262 expect(email['subject']).contains(' blacklisted') 262 expect(email['subject']).contains(' blacklisted')
@@ -274,7 +274,7 @@ describe('Test emails', function () {
274 274
275 const email = emails[6] 275 const email = emails[6]
276 276
277 expect(email['from'][0]['name']).equal('localhost:' + server.port) 277 expect(email['from'][0]['name']).equal('PeerTube')
278 expect(email['from'][0]['address']).equal('test-admin@localhost') 278 expect(email['from'][0]['address']).equal('test-admin@localhost')
279 expect(email['to'][0]['address']).equal('user_1@example.com') 279 expect(email['to'][0]['address']).equal('user_1@example.com')
280 expect(email['subject']).contains(' unblacklisted') 280 expect(email['subject']).contains(' unblacklisted')
@@ -299,7 +299,7 @@ describe('Test emails', function () {
299 299
300 const email = emails[7] 300 const email = emails[7]
301 301
302 expect(email['from'][0]['name']).equal('localhost:' + server.port) 302 expect(email['from'][0]['name']).equal('PeerTube')
303 expect(email['from'][0]['address']).equal('test-admin@localhost') 303 expect(email['from'][0]['address']).equal('test-admin@localhost')
304 expect(email['to'][0]['address']).equal('user_1@example.com') 304 expect(email['to'][0]['address']).equal('user_1@example.com')
305 expect(email['subject']).contains('Verify') 305 expect(email['subject']).contains('Verify')