|
|
@ -29,7 +29,8 @@ import {
|
|
|
|
randomString,
|
|
|
|
randomString,
|
|
|
|
registerUser,
|
|
|
|
registerUser,
|
|
|
|
API,
|
|
|
|
API,
|
|
|
|
getSite
|
|
|
|
getSite,
|
|
|
|
|
|
|
|
unfollows
|
|
|
|
} from './shared';
|
|
|
|
} from './shared';
|
|
|
|
import { PostView, CommunityView } from 'lemmy-js-client';
|
|
|
|
import { PostView, CommunityView } from 'lemmy-js-client';
|
|
|
|
|
|
|
|
|
|
|
@ -46,13 +47,6 @@ afterAll(async () => {
|
|
|
|
await unfollows();
|
|
|
|
await unfollows();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
async function unfollows() {
|
|
|
|
|
|
|
|
await unfollowRemotes(alpha);
|
|
|
|
|
|
|
|
await unfollowRemotes(gamma);
|
|
|
|
|
|
|
|
await unfollowRemotes(delta);
|
|
|
|
|
|
|
|
await unfollowRemotes(epsilon);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function assertPostFederation(postOne: PostView, postTwo: PostView) {
|
|
|
|
function assertPostFederation(postOne: PostView, postTwo: PostView) {
|
|
|
|
expect(postOne.post.ap_id).toBe(postTwo.post.ap_id);
|
|
|
|
expect(postOne.post.ap_id).toBe(postTwo.post.ap_id);
|
|
|
|
expect(postOne.post.name).toBe(postTwo.post.name);
|
|
|
|
expect(postOne.post.name).toBe(postTwo.post.name);
|
|
|
|