test: cover extract-search ACL options

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-01 22:54:01 +00:00
1 parent cd86192ca2
commit 3c7b4e6ee6
1 file changed
+11 -7
@@ -67,13 +67,17 @@ describe("company extract-search route", () => {
})
.expect(200);
expect(extract).toHaveBeenCalledWith("company-1", expect.objectContaining({
contains: "github.com/example/repo/pull",
kind: "url",
scope: "comments",
limit: 200,
matchesPerIssue: 200,
}));
expect(extract).toHaveBeenCalledWith(
"company-1",
expect.objectContaining({
contains: "github.com/example/repo/pull",
kind: "url",
scope: "comments",
limit: 200,
matchesPerIssue: 200,
}),
expect.objectContaining({ issueReadCondition: expect.anything() }),
);
expect(response.body).toMatchObject({ kind: "url", scope: "comments", truncated: false });
});