mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
prettier
This commit is contained in:
parent
b9f8090567
commit
59c229158e
2 changed files with 2133 additions and 968 deletions
File diff suppressed because it is too large
Load diff
|
@ -227,16 +227,18 @@ test("Sticky a post", async () => {
|
|||
expect(betaPost3?.post.featured_community).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
test("Collection of featured posts gets federated", async () => {
|
||||
// create a new community and feature a post
|
||||
let community = await createCommunity(alpha);
|
||||
let post = await createPost(alpha,community.community_view.community.id);
|
||||
let post = await createPost(alpha, community.community_view.community.id);
|
||||
let featuredPost = await featurePost(alpha, true, post.post_view.post);
|
||||
expect(featuredPost.post_view.post.featured_community).toBe(true);
|
||||
|
||||
// fetch the community, ensure that post is also fetched and marked as featured
|
||||
let betaCommunity = (await resolveCommunity(beta, community.community_view.community.actor_id));
|
||||
let betaCommunity = await resolveCommunity(
|
||||
beta,
|
||||
community.community_view.community.actor_id,
|
||||
);
|
||||
|
||||
const betaPost = await waitForPost(
|
||||
beta,
|
||||
|
|
Loading…
Reference in a new issue