From 2a97749d23a55ba731d8200acc061b672bf89e22 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Mon, 5 Aug 2024 11:42:36 +0200 Subject: [PATCH] Add shape property passing --- .../test/token_tests/logic/token_actions_test.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/test/token_tests/logic/token_actions_test.cljs b/frontend/test/token_tests/logic/token_actions_test.cljs index 1b6565d00..7d419eeb8 100644 --- a/frontend/test/token_tests/logic/token_actions_test.cljs +++ b/frontend/test/token_tests/logic/token_actions_test.cljs @@ -14,12 +14,12 @@ (t/use-fixtures :each {:before thp/reset-idmap!}) -(defn- setup-file - [] +(defn setup-file + [& {:keys [rect-1 rect-2 rect-3]}] (-> (cthf/sample-file :file-1 :page-label :page-1) - (ctho/add-rect :rect-1 {}) - (ctho/add-rect :rect-2 {}) - (ctho/add-rect :rect-3 {}) + (ctho/add-rect :rect-1 rect-1) + (ctho/add-rect :rect-2 rect-2) + (ctho/add-rect :rect-3 rect-3) (toht/add-token :token-1 {:value "12" :name "borderRadius.sm" :type :border-radius})