mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
Follow-up to #860, promised in review rather than asked of the contributor. `not.toContain("left: 4%")" passes for a marker at 4.02%, which is the same defect one rounding away, so the test now reads the marker position and asserts it sits inside the padding at both ends. EDGE_PADDING_PERCENT moves to module scope and is exported, so the assertion uses the number the component clamps with instead of a copy that can drift. It was being reallocated on every render besides. Verified by mutation: dropping the outlier expansion puts the marker at exactly 4 and turns this test red.