diff options
Diffstat (limited to 'server/tests/api/server/follows-moderation.ts')
-rw-r--r-- | server/tests/api/server/follows-moderation.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/server/follows-moderation.ts b/server/tests/api/server/follows-moderation.ts index 0aa328c5a..921f51043 100644 --- a/server/tests/api/server/follows-moderation.ts +++ b/server/tests/api/server/follows-moderation.ts | |||
@@ -60,7 +60,7 @@ describe('Test follows moderation', function () { | |||
60 | it('Should have server 1 following server 2', async function () { | 60 | it('Should have server 1 following server 2', async function () { |
61 | this.timeout(30000) | 61 | this.timeout(30000) |
62 | 62 | ||
63 | await commands[0].follow({ targets: [ servers[1].url ] }) | 63 | await commands[0].follow({ hosts: [ servers[1].url ] }) |
64 | 64 | ||
65 | await waitJobs(servers) | 65 | await waitJobs(servers) |
66 | }) | 66 | }) |
@@ -95,7 +95,7 @@ describe('Test follows moderation', function () { | |||
95 | 95 | ||
96 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) | 96 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) |
97 | 97 | ||
98 | await commands[0].follow({ targets: [ servers[1].url ] }) | 98 | await commands[0].follow({ hosts: [ servers[1].url ] }) |
99 | await waitJobs(servers) | 99 | await waitJobs(servers) |
100 | 100 | ||
101 | await checkNoFollowers(servers) | 101 | await checkNoFollowers(servers) |
@@ -115,7 +115,7 @@ describe('Test follows moderation', function () { | |||
115 | 115 | ||
116 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) | 116 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) |
117 | 117 | ||
118 | await commands[0].follow({ targets: [ servers[1].url ] }) | 118 | await commands[0].follow({ hosts: [ servers[1].url ] }) |
119 | await waitJobs(servers) | 119 | await waitJobs(servers) |
120 | 120 | ||
121 | await checkServer1And2HasFollowers(servers) | 121 | await checkServer1And2HasFollowers(servers) |
@@ -139,7 +139,7 @@ describe('Test follows moderation', function () { | |||
139 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) | 139 | await servers[1].config.updateCustomSubConfig({ newConfig: subConfig }) |
140 | await servers[2].config.updateCustomSubConfig({ newConfig: subConfig }) | 140 | await servers[2].config.updateCustomSubConfig({ newConfig: subConfig }) |
141 | 141 | ||
142 | await commands[0].follow({ targets: [ servers[1].url ] }) | 142 | await commands[0].follow({ hosts: [ servers[1].url ] }) |
143 | await waitJobs(servers) | 143 | await waitJobs(servers) |
144 | 144 | ||
145 | await checkServer1And2HasFollowers(servers, 'pending') | 145 | await checkServer1And2HasFollowers(servers, 'pending') |
@@ -157,7 +157,7 @@ describe('Test follows moderation', function () { | |||
157 | it('Should reject another follower', async function () { | 157 | it('Should reject another follower', async function () { |
158 | this.timeout(20000) | 158 | this.timeout(20000) |
159 | 159 | ||
160 | await commands[0].follow({ targets: [ servers[2].url ] }) | 160 | await commands[0].follow({ hosts: [ servers[2].url ] }) |
161 | await waitJobs(servers) | 161 | await waitJobs(servers) |
162 | 162 | ||
163 | { | 163 | { |