diff options
Diffstat (limited to 'server/tests/api/notifications/user-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 4b31edf25..465349fb9 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -14,7 +14,6 @@ import { | |||
14 | MockSmtpServer, | 14 | MockSmtpServer, |
15 | prepareNotificationsTest, | 15 | prepareNotificationsTest, |
16 | ServerInfo, | 16 | ServerInfo, |
17 | updateMyUser, | ||
18 | updateVideo, | 17 | updateVideo, |
19 | uploadRandomVideoOnServers, | 18 | uploadRandomVideoOnServers, |
20 | wait, | 19 | wait, |
@@ -384,23 +383,14 @@ describe('Test user notifications', function () { | |||
384 | token: userAccessToken | 383 | token: userAccessToken |
385 | } | 384 | } |
386 | 385 | ||
387 | await updateMyUser({ | 386 | await servers[0].usersCommand.updateMe({ displayName: 'super root name' }) |
388 | url: servers[0].url, | ||
389 | accessToken: servers[0].accessToken, | ||
390 | displayName: 'super root name' | ||
391 | }) | ||
392 | 387 | ||
393 | await updateMyUser({ | 388 | await servers[0].usersCommand.updateMe({ |
394 | url: servers[0].url, | 389 | token: userAccessToken, |
395 | accessToken: userAccessToken, | ||
396 | displayName: myUserName | 390 | displayName: myUserName |
397 | }) | 391 | }) |
398 | 392 | ||
399 | await updateMyUser({ | 393 | await servers[1].usersCommand.updateMe({ displayName: 'super root 2 name' }) |
400 | url: servers[1].url, | ||
401 | accessToken: servers[1].accessToken, | ||
402 | displayName: 'super root 2 name' | ||
403 | }) | ||
404 | 394 | ||
405 | await servers[0].channelsCommand.update({ | 395 | await servers[0].channelsCommand.update({ |
406 | token: userAccessToken, | 396 | token: userAccessToken, |