test(documents): wire content-index mocks into the list route test

P2-1. The list GET now issues a documentContentIndex lookup and unions a
content-token OR branch when a search term is present, so the existing route
test gains the mock + the third OR branch in its where assertion. Fix the
backfill test's findFirst mock signature under strict tsc.
This commit is contained in:
Marc-André Bombeck committed 2026-07-07 18:41:09 +02:00
1 parent b210c743e9
commit 1f7807aead
16 files changed
+211 -55

No files matched your search

@@ -68,7 +68,7 @@ describe("<DocumentCard>", () => {
<DocumentCard
document={doc({
servingClass: "attachment",
hasContentIndex: false,
hasContentIndex: false,
mimeType: "application/octet-stream",
filename: "befund.docx",
title: null,