mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
🐛 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:
parent
95470a9ce8
commit
fc4c7bb82c
@ -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])))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user