mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
🎉 Add more unit tests
This commit is contained in:
parent
80549bda9b
commit
2e3addc6da
3 changed files with 1269 additions and 138 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue