mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 12:28:30 +02:00
Move callback function to component
This commit is contained in:
parent
28f25da9e8
commit
c98162d0bf
3 changed files with 55 additions and 66 deletions
|
@ -18,8 +18,3 @@
|
|||
(t/is (nil? (wtsd/find-token-references "1 + 2")))
|
||||
;; Edge-case: Ignore unmatched closing parens
|
||||
(t/is (= #{"foo" "bar"} (wtsd/find-token-references "{foo}} + {bar}"))))
|
||||
|
||||
(t/deftest test-token-self-reference?
|
||||
(t/is (some? (wtsd/token-self-reference? "some.value" "{md} + {some.value}")))
|
||||
(t/is (nil? (wtsd/token-self-reference? "some.value" "some.value")))
|
||||
(t/is (nil? (wtsd/token-self-reference? "sm" "{md} + {lg}"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue