mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 11:58:24 +02:00
Split path/selector for disallowing creating tokens at path segments
This commit is contained in:
parent
a98f59469e
commit
4a85ef3608
2 changed files with 32 additions and 15 deletions
|
@ -28,6 +28,7 @@
|
|||
:value "{foo.bar.baz}"}}))))
|
||||
|
||||
(t/deftest token-name-path-exists?-test
|
||||
(t/is (true? (wtt/token-name-path-exists? "border-radius" {"border-radius" {"sm" {:name "sm"}}})))
|
||||
(t/is (true? (wtt/token-name-path-exists? "border-radius" {"border-radius" {:name "sm"}})))
|
||||
(t/is (true? (wtt/token-name-path-exists? "border-radius.sm" {"border-radius" {:name "sm"}})))
|
||||
(t/is (true? (wtt/token-name-path-exists? "border-radius.sm.x" {"border-radius" {:name "sm"}})))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue