mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🎉 Add more unit tests
This commit is contained in:
committed by
Andrey Antukh
parent
80549bda9b
commit
2e3addc6da
@@ -597,6 +597,8 @@
|
|||||||
new-state
|
new-state
|
||||||
new-instance-id)]
|
new-instance-id)]
|
||||||
|
|
||||||
|
; TODO: get and check the instance inside component [Rect-2]
|
||||||
|
|
||||||
(t/is (not= (:id instance1) (:id instance3)))
|
(t/is (not= (:id instance1) (:id instance3)))
|
||||||
(t/is (= (:id component) component-id))
|
(t/is (= (:id component) component-id))
|
||||||
(t/is (= (:name instance3) "Rect-3"))
|
(t/is (= (:name instance3) "Rect-3"))
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -63,7 +63,7 @@
|
|||||||
shapes-inst (cph/get-children-with-self (:objects page)
|
shapes-inst (cph/get-children-with-self (:objects page)
|
||||||
root-inst-id)]
|
root-inst-id)]
|
||||||
(is-instance-root (first shapes-inst))
|
(is-instance-root (first shapes-inst))
|
||||||
(run! is-instance-child (rest shapes-inst))
|
(run! is-instance-inner (rest shapes-inst))
|
||||||
|
|
||||||
shapes-inst))
|
shapes-inst))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user