From 7b9b5bafc173ef26c33f773ba05fcd562d6bfd47 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 10 Sep 2024 14:27:11 +0200 Subject: [PATCH] :fire: Remove duplicated test --- .../common_tests/logic/comp_touched_test.cljc | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/common/test/common_tests/logic/comp_touched_test.cljc b/common/test/common_tests/logic/comp_touched_test.cljc index 1f16a2107..bb615f7ae 100644 --- a/common/test/common_tests/logic/comp_touched_test.cljc +++ b/common/test/common_tests/logic/comp_touched_test.cljc @@ -289,42 +289,3 @@ (t/is (= (:fill-opacity fill') 1)) (t/is (= (:touched copy2-root') nil)) (t/is (= (:touched copy2-child') #{:fill-group})))) - -(t/deftest test-touched-when-changing-lower - (let [;; ==== Setup - file (-> (thf/sample-file :file1) - (tho/add-nested-component-with-copy :component1 - :main1-root - :main1-child - :component2 - :main2-root - :main2-nested-head - :copy2-root - :copy2-root-params {:children-labels [:copy2-child]})) - page (thf/current-page file) - copy2-child (ths/get-shape file :copy2-child) - - ;; ==== Action - changes (cls/generate-update-shapes (pcb/empty-changes nil (:id page)) - #{(:id copy2-child)} - (fn [shape] - (assoc shape :fills (ths/sample-fills-color :fill-color "#fabada"))) - (:objects page) - {}) - - file' (thf/apply-changes file changes) - - ;; ==== Get - copy2-root' (ths/get-shape file' :copy2-root) - copy2-child' (ths/get-shape file' :copy2-child) - fills' (:fills copy2-child') - fill' (first fills')] - - ;; ==== Check - (t/is (some? copy2-root')) - (t/is (some? copy2-child')) - (t/is (= (count fills') 1)) - (t/is (= (:fill-color fill') "#fabada")) - (t/is (= (:fill-opacity fill') 1)) - (t/is (= (:touched copy2-root') nil)) - (t/is (= (:touched copy2-child') #{:fill-group})))) \ No newline at end of file