mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
📎 Fix common tests.
This commit is contained in:
parent
7a97c94f2b
commit
beff3fe843
2 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
;; insert existing in a contiguos index
|
||||
(t/is (= (cph/insert-at-index [:a :b] 1 [:a])
|
||||
[:b :a]))
|
||||
[:a :b]))
|
||||
|
||||
;; insert existing in the same index
|
||||
(t/is (= (cph/insert-at-index [:a :b] 0 [:a])
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
;; insert existing in other index case 1
|
||||
(t/is (= (cph/insert-at-index [:a :b :c] 2 [:a])
|
||||
[:b :c :a]))
|
||||
[:b :a :c]))
|
||||
|
||||
;; insert existing in other index case 2
|
||||
(t/is (= (cph/insert-at-index [:a :b :c :d] 0 [:d])
|
||||
|
@ -45,6 +45,6 @@
|
|||
|
||||
;; insert existing in other index case 3
|
||||
(t/is (= (cph/insert-at-index [:a :b :c :d] 1 [:a])
|
||||
[:b :a :c :d]))
|
||||
[:a :b :c :d]))
|
||||
|
||||
)
|
||||
|
|
|
@ -574,7 +574,7 @@
|
|||
|
||||
;; After
|
||||
|
||||
(t/is (= [shape-4-id group-1-id shape-3-id]
|
||||
(t/is (= [shape-4-id shape-3-id group-1-id]
|
||||
(get-in res [:pages-index page-id :objects cp/root :shapes])))
|
||||
|
||||
;; (pprint (get-in data [:pages-index page-id :objects cp/root]))
|
||||
|
|
Loading…
Add table
Reference in a new issue