-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);
+ expect(postOne?.post.body).toBe(postTwo?.post.body);
+ // TODO url clears arent working
+ // expect(postOne?.post.url).toBe(postTwo?.post.url);
+ expect(postOne?.post.nsfw).toBe(postTwo?.post.nsfw);
+ expect(postOne?.post.embed_title).toBe(postTwo?.post.embed_title);
+ expect(postOne?.post.embed_description).toBe(postTwo?.post.embed_description);
+ expect(postOne?.post.embed_video_url).toBe(postTwo?.post.embed_video_url);
+ expect(postOne?.post.published).toBe(postTwo?.post.published);
+ expect(postOne?.community.actor_id).toBe(postTwo?.community.actor_id);
+ expect(postOne?.post.locked).toBe(postTwo?.post.locked);
+ expect(postOne?.post.removed).toBe(postTwo?.post.removed);
+ expect(postOne?.post.deleted).toBe(postTwo?.post.deleted);