mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 17:37:00 +02:00
♻️ Remove unnecesary RX and RY from shapes
This commit is contained in:
parent
b332f128b0
commit
73e48b3d81
36 changed files with 364 additions and 458 deletions
|
@ -25,11 +25,6 @@
|
|||
(t/testing "doesnt accept invalid double"
|
||||
(t/is (nil? (wtt/parse-token-value ".3")))))
|
||||
|
||||
(t/deftest remove-attributes-for-token-id
|
||||
(t/testing "removes attributes matching the `token`, keeps other attributes"
|
||||
(t/is (= {:ry "b"}
|
||||
(wtt/remove-attributes-for-token #{:rx :ry} {:name "a"} {:rx "a" :ry "b"})))))
|
||||
|
||||
(t/deftest token-applied-test
|
||||
(t/testing "matches passed token with `:token-attributes`"
|
||||
(t/is (true? (wtt/token-applied? {:name "a"} {:applied-tokens {:x "a"}} #{:x}))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue