mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +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
|
@ -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);
|
||||
});
|
||||
|
||||
test("moderator view", async () => {
|
||||
test.only("moderator view", async () => {
|
||||
// register a new user with their own community on alpha and post to it
|
||||
let otherUser = await registerUser(alpha, alphaUrl);
|
||||
|
||||
|
|
|
@ -329,6 +329,7 @@ export async function getComments(
|
|||
post_id: post_id,
|
||||
type_: listingType,
|
||||
sort: "New",
|
||||
limit: 50,
|
||||
};
|
||||
return api.getComments(form);
|
||||
}
|
||||
|
@ -793,6 +794,7 @@ export function getPosts(
|
|||
): Promise<GetPostsResponse> {
|
||||
let form: GetPosts = {
|
||||
type_: listingType,
|
||||
limit: 50,
|
||||
};
|
||||
return api.getPosts(form);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue