0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🎉 Add more unit tests

This commit is contained in:
Andrés Moya 2022-03-22 19:01:34 +01:00 committed by Andrey Antukh
parent 80549bda9b
commit 2e3addc6da
3 changed files with 1269 additions and 138 deletions

View file

@ -597,6 +597,8 @@
new-state
new-instance-id)]
; TODO: get and check the instance inside component [Rect-2]
(t/is (not= (:id instance1) (:id instance3)))
(t/is (= (:id component) component-id))
(t/is (= (:name instance3) "Rect-3"))

File diff suppressed because it is too large Load diff

View file

@ -63,7 +63,7 @@
shapes-inst (cph/get-children-with-self (:objects page)
root-inst-id)]
(is-instance-root (first shapes-inst))
(run! is-instance-child (rest shapes-inst))
(run! is-instance-inner (rest shapes-inst))
shapes-inst))