0
Fork 0
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:
Andrey Antukh 2021-12-03 16:00:56 +01:00
parent 7a97c94f2b
commit beff3fe843
2 changed files with 4 additions and 4 deletions

View file

@ -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]))
)

View file

@ -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]))