X-Git-Url: http://these/git/?a=blobdiff_plain;f=api_tests%2Fsrc%2Fpost.spec.ts;h=0e9276f93e62bfa18ebbdc3552e07628e09830cb;hb=5698dd77710ab62711f3fa80bf4b3257e902e4cb;hp=3e834dbe4074eb82d1ffbeda4a42f14bb63bdfe7;hpb=a10bf7d4104ea433156a6c17a72dda8c0ea9673e;p=lemmy.git diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index 3e834dbe..0e9276f9 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -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 +});