aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/moderation
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 09:16:40 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commitc3d29f694bf8c910f917be655626d0f80871124f (patch)
treec90dfdc1245c8a9aca49e9ea9c71ed8e6b9dd35f /server/tests/api/moderation
parent883a9019085ff9013079d6b1539b86f2f519175a (diff)
downloadPeerTube-c3d29f694bf8c910f917be655626d0f80871124f.tar.gz
PeerTube-c3d29f694bf8c910f917be655626d0f80871124f.tar.zst
PeerTube-c3d29f694bf8c910f917be655626d0f80871124f.zip
Introduce follows command
Diffstat (limited to 'server/tests/api/moderation')
-rw-r--r--server/tests/api/moderation/blocklist.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/tests/api/moderation/blocklist.ts b/server/tests/api/moderation/blocklist.ts
index 793abbcb4..9ca6324c2 100644
--- a/server/tests/api/moderation/blocklist.ts
+++ b/server/tests/api/moderation/blocklist.ts
@@ -15,7 +15,6 @@ import {
15 doubleFollow, 15 doubleFollow,
16 findCommentId, 16 findCommentId,
17 flushAndRunMultipleServers, 17 flushAndRunMultipleServers,
18 follow,
19 getAccountBlocklistByAccount, 18 getAccountBlocklistByAccount,
20 getAccountBlocklistByServer, 19 getAccountBlocklistByServer,
21 getServerBlocklistByAccount, 20 getServerBlocklistByAccount,
@@ -31,7 +30,6 @@ import {
31 removeServerFromServerBlocklist, 30 removeServerFromServerBlocklist,
32 ServerInfo, 31 ServerInfo,
33 setAccessTokensToServers, 32 setAccessTokensToServers,
34 unfollow,
35 uploadVideo, 33 uploadVideo,
36 userLogin, 34 userLogin,
37 waitJobs 35 waitJobs
@@ -742,9 +740,9 @@ describe('Test blocklist', function () {
742 740
743 { 741 {
744 const now = new Date() 742 const now = new Date()
745 await unfollow(servers[1].url, servers[1].accessToken, servers[0]) 743 await servers[1].followsCommand.unfollow({ target: servers[0] })
746 await waitJobs(servers) 744 await waitJobs(servers)
747 await follow(servers[1].url, [ servers[0].host ], servers[1].accessToken) 745 await servers[1].followsCommand.follow({ targets: [ servers[0].host ] })
748 746
749 await waitJobs(servers) 747 await waitJobs(servers)
750 748
@@ -807,9 +805,9 @@ describe('Test blocklist', function () {
807 805
808 { 806 {
809 const now = new Date() 807 const now = new Date()
810 await unfollow(servers[1].url, servers[1].accessToken, servers[0]) 808 await servers[1].followsCommand.unfollow({ target: servers[0] })
811 await waitJobs(servers) 809 await waitJobs(servers)
812 await follow(servers[1].url, [ servers[0].host ], servers[1].accessToken) 810 await servers[1].followsCommand.follow({ targets: [ servers[0].host ] })
813 811
814 await waitJobs(servers) 812 await waitJobs(servers)
815 813