mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
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:
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\)/);
|
||||
|
||||
Reference in new issue
Block a user