From 3c7b4e6ee6f8c96ed7262cd5d6e39a648c0dc9e7 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 1 Aug 2026 17:11:32 +0000 Subject: [PATCH] test: cover extract-search ACL options Co-Authored-By: Paperclip --- .../company-search-extract-routes.test.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/server/src/__tests__/company-search-extract-routes.test.ts b/server/src/__tests__/company-search-extract-routes.test.ts index 375247858b6..af06dd86d08 100644 --- a/server/src/__tests__/company-search-extract-routes.test.ts +++ b/server/src/__tests__/company-search-extract-routes.test.ts @@ -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 }); });