Skip to content

Commit a55df9e

Browse files
committed
test(commons): reflect updated expected replies on unit test
1 parent 4e252c5 commit a55df9e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

apps/modeling-commons-frontend/app/components/comment/CommentsSection.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ describe("CommentsSection auth gating", () => {
130130

131131
describe("CommentsSection highlight", () => {
132132
function viewFor(wrapper: Awaited<ReturnType<typeof mountCommentsSection>>, id: string) {
133-
return wrapper
134-
.findAllComponents(CommentView)
135-
.find((view) => view.props("comment")?.id === id);
133+
return wrapper.findAllComponents(CommentView).find((view) => view.props("comment")?.id === id);
136134
}
137135

138136
it("threads the highlighted comment id from the URL down to the targeted comment", async () => {
@@ -312,7 +310,7 @@ describe("CommentsSection pagination seams", () => {
312310

313311
const replyFetch = calls("GET").find((call) => call.url.includes("/comments/1?"));
314312
expect(replyFetch?.url).toContain("page=1");
315-
expect(replyFetch?.url).toContain("limit=2");
313+
expect(replyFetch?.url).toContain("limit=5");
316314
});
317315

318316
it("requests the next comment page on load-more", async () => {

0 commit comments

Comments
 (0)