aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications/moderation-notifications.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-29 13:46:52 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-31 11:35:19 +0200
commit41130b4ce3b925170b03d9d94c46691be66ecf51 (patch)
treea365b72a671d4459b8cd08be89c744988d0a84e9 /server/tests/api/notifications/moderation-notifications.ts
parent668b7f096ead74d6e7692944a026c936f581dae8 (diff)
downloadPeerTube-41130b4ce3b925170b03d9d94c46691be66ecf51.tar.gz
PeerTube-41130b4ce3b925170b03d9d94c46691be66ecf51.tar.zst
PeerTube-41130b4ce3b925170b03d9d94c46691be66ecf51.zip
Fix tests
Diffstat (limited to 'server/tests/api/notifications/moderation-notifications.ts')
-rw-r--r--server/tests/api/notifications/moderation-notifications.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts
index 721a445ab..e7aa5d987 100644
--- a/server/tests/api/notifications/moderation-notifications.ts
+++ b/server/tests/api/notifications/moderation-notifications.ts
@@ -267,7 +267,7 @@ describe('Test moderation notifications', function () {
267 await addAbuseMessage(servers[0].url, servers[0].accessToken, abuseId, message) 267 await addAbuseMessage(servers[0].url, servers[0].accessToken, abuseId, message)
268 await waitJobs(servers) 268 await waitJobs(servers)
269 269
270 await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin1@example.com', 'absence') 270 await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'absence')
271 }) 271 })
272 272
273 it('Should send a notification to moderators', async function () { 273 it('Should send a notification to moderators', async function () {
@@ -277,7 +277,7 @@ describe('Test moderation notifications', function () {
277 await addAbuseMessage(servers[0].url, userAccessToken, abuseId2, message) 277 await addAbuseMessage(servers[0].url, userAccessToken, abuseId2, message)
278 await waitJobs(servers) 278 await waitJobs(servers)
279 279
280 await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin1@example.com', 'presence') 280 await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'presence')
281 }) 281 })
282 282
283 it('Should not send a notification to reporter if sent by the reporter', async function () { 283 it('Should not send a notification to reporter if sent by the reporter', async function () {