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.
This commit is contained in:
Marc-André Bombeck committed 2026-06-19 22:22:34 +02:00
1 parent 1f4ba5939d
commit ad163f811b
1 file changed
+1 -1
@@ -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\)/);