🐛 Expect the other padding sides at 0 in the dimension token test (#13321)

Since #13266, a padding change on a layout without padding fills the
four sides, so the sides not chosen become 0 instead of staying nil.
The test from #13215 still expected nil and failed on develop.

AI-assisted-by: claude-opus-5-5
This commit is contained in:
Eva Marco 2026-11-25 11:21:23 +01:00 committed by GitHub
parent 95470a9ce8
commit fc4c7bb82c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,11 +115,9 @@
(t/is (= {:p1 "dimension.md" :p3 "dimension.md" :row-gap "dimension.md"}
(:applied-tokens layout')))
(t/testing "sets the chosen paddings only"
(t/is (= 24 (get-in layout' [:layout-padding :p1])))
(t/is (= 24 (get-in layout' [:layout-padding :p3])))
(t/is (= (get-in layout [:layout-padding :p2])
(get-in layout' [:layout-padding :p2]))))
(t/testing "sets the chosen paddings and leaves the other sides at 0"
(t/is (= {:p1 24 :p2 0 :p3 24 :p4 0}
(:layout-padding layout'))))
(t/testing "sets the chosen gap only"
(t/is (= 24 (get-in layout' [:layout-gap :row-gap])))