+ return res
+}
+
+async function unfollow (url: string, accessToken: string, id: number, expectedStatus = 204) {
+ const path = '/api/v1/server/following/' + id
+
+ const res = await request(url)
+ .delete(path)
+ .set('Accept', 'application/json')
+ .set('Authorization', 'Bearer ' + accessToken)
+ .expect(expectedStatus)