mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Set explicit limit for getPosts/getComments in tests (#4250)
* Set explicit limit for getPosts/getComments in tests * pretier
This commit is contained in:
parent
95130370f0
commit
b2ae69f96c
2 changed files with 3 additions and 1 deletions
|
@ -249,7 +249,7 @@ test("Admin actions in remote community are not federated to origin", async () =
|
||||||
expect(gammaPost2.post_view.creator_banned_from_community).toBe(false);
|
expect(gammaPost2.post_view.creator_banned_from_community).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("moderator view", async () => {
|
test.only("moderator view", async () => {
|
||||||
// register a new user with their own community on alpha and post to it
|
// register a new user with their own community on alpha and post to it
|
||||||
let otherUser = await registerUser(alpha, alphaUrl);
|
let otherUser = await registerUser(alpha, alphaUrl);
|
||||||
|
|
||||||
|
|
|
@ -329,6 +329,7 @@ export async function getComments(
|
||||||
post_id: post_id,
|
post_id: post_id,
|
||||||
type_: listingType,
|
type_: listingType,
|
||||||
sort: "New",
|
sort: "New",
|
||||||
|
limit: 50,
|
||||||
};
|
};
|
||||||
return api.getComments(form);
|
return api.getComments(form);
|
||||||
}
|
}
|
||||||
|
@ -793,6 +794,7 @@ export function getPosts(
|
||||||
): Promise<GetPostsResponse> {
|
): Promise<GetPostsResponse> {
|
||||||
let form: GetPosts = {
|
let form: GetPosts = {
|
||||||
type_: listingType,
|
type_: listingType,
|
||||||
|
limit: 50,
|
||||||
};
|
};
|
||||||
return api.getPosts(form);
|
return api.getPosts(form);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue