diff --git a/common/test/app/common/pages_helpers_test.cljc b/common/test/app/common/pages_helpers_test.cljc index f7790af62..34bc3e3cb 100644 --- a/common/test/app/common/pages_helpers_test.cljc +++ b/common/test/app/common/pages_helpers_test.cljc @@ -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])) ) diff --git a/common/test/app/common/pages_test.cljc b/common/test/app/common/pages_test.cljc index 464e72bbd..abfa5f8f3 100644 --- a/common/test/app/common/pages_test.cljc +++ b/common/test/app/common/pages_test.cljc @@ -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]))