From ad163f811b398c4a0233dffc5151a3ddc34e70d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 19 Jun 2026 22:22:34 +0200 Subject: [PATCH] test(medications): point the supply source-guard at the renamed detail file The inventory summary spec reads the detail-tab source by path to assert both supply readouts ride summariseSupply; update the literal to the kebab-case filename. --- src/lib/medications/inventory/__tests__/summary.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/medications/inventory/__tests__/summary.test.ts b/src/lib/medications/inventory/__tests__/summary.test.ts index 7cb9bf11f..965c4b417 100644 --- a/src/lib/medications/inventory/__tests__/summary.test.ts +++ b/src/lib/medications/inventory/__tests__/summary.test.ts @@ -90,7 +90,7 @@ describe("supply surfaces — both detail-page readouts ride the shared helper ( it("the Übersicht supply row sums through summariseSupply and feeds the runway with the available-only figure", () => { const src = read( - "src/components/medications/detail/MedicationDetailTabs.tsx", + "src/components/medications/detail/medication-detail-tabs.tsx", ); expect(src).toContain('from "@/lib/medications/inventory/summary"'); expect(src).toMatch(/summariseSupply\(inventoryItems, perDose\)/);