diff options
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/follows.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/follows.ts b/server/tests/utils/follows.ts index 033c6a719..a9f798bcb 100644 --- a/server/tests/utils/follows.ts +++ b/server/tests/utils/follows.ts | |||
@@ -42,8 +42,8 @@ async function follow (follower: string, following: string[], accessToken: strin | |||
42 | return res | 42 | return res |
43 | } | 43 | } |
44 | 44 | ||
45 | async function unfollow (url: string, accessToken: string, id: number, expectedStatus = 204) { | 45 | async function unfollow (url: string, accessToken: string, target: ServerInfo, expectedStatus = 204) { |
46 | const path = '/api/v1/server/following/' + id | 46 | const path = '/api/v1/server/following/' + target.host |
47 | 47 | ||
48 | const res = await request(url) | 48 | const res = await request(url) |
49 | .delete(path) | 49 | .delete(path) |