]> Untitled Git - lemmy.git/blobdiff - api_tests/src/post.spec.ts
Trying to fix api tests 1
[lemmy.git] / api_tests / src / post.spec.ts
index 3e834dbe4074eb82d1ffbeda4a42f14bb63bdfe7..0e9276f93e62bfa18ebbdc3552e07628e09830cb 100644 (file)
@@ -29,7 +29,8 @@ import {
   randomString,
   registerUser,
   API,
-  getSite
+  getSite,
+  unfollows
 } from './shared';
 import { PostView, CommunityView } from 'lemmy-js-client';
 
@@ -46,13 +47,6 @@ afterAll(async () => {
   await unfollows();
 });
 
-async function unfollows() {
-  await unfollowRemotes(alpha);
-  await unfollowRemotes(gamma);
-  await unfollowRemotes(delta);
-  await unfollowRemotes(epsilon);
-}
-
 function assertPostFederation(postOne: PostView, postTwo: PostView) {
   expect(postOne.post.ap_id).toBe(postTwo.post.ap_id);
   expect(postOne.post.name).toBe(postTwo.post.name);
@@ -400,4 +394,4 @@ test('Report a post', async () => {
   expect(betaReport.original_post_url).toBe(alphaReport.original_post_url);
   expect(betaReport.original_post_body).toBe(alphaReport.original_post_body);
   expect(betaReport.reason).toBe(alphaReport.reason);
-});
\ No newline at end of file
+});