From 8bb2c67673ca5592d15cc4882e943b12a0d89e23 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 28 Nov 2024 13:35:08 +0200 Subject: [PATCH] Remove unncessary promesa use in test --- test/reagenttest/testreagent.cljs | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/test/reagenttest/testreagent.cljs b/test/reagenttest/testreagent.cljs index e82ef76e..9b67cda8 100644 --- a/test/reagenttest/testreagent.cljs +++ b/test/reagenttest/testreagent.cljs @@ -3,7 +3,6 @@ [clojure.test :as t :refer-macros [is deftest testing]] [goog.object :as gobj] [goog.string :as gstr] - [promesa.core :as p] [react :as react] [reagent.core :as r] [reagent.debug :as debug :refer [dev?]] @@ -523,23 +522,23 @@ (u/deftest ^:dom test-keys (u/async - (p/let [a nil ;; (r/atom "a") - c (fn key-tester [] - [:div - (for [i (range 3)] - ^{:key i} [:p i (some-> a deref)]) - (for [i (range 3)] - [:p {:key i} i (some-> a deref)])])] + (let [a nil ;; (r/atom "a") + c (fn key-tester [] + [:div + (for [i (range 3)] + ^{:key i} [:p i (some-> a deref)]) + (for [i (range 3)] + [:p {:key i} i (some-> a deref)])])] (u/with-render [_div [c]] {:capture-errors true} (is (empty? (:warn @reagent.debug/warnings))))) (testing "Check warning text can be produced even if hiccup contains function literals" - (p/let [c (fn key-tester [] - [:div - (for [i (range 3)] - ^{:key nil} - [:button {:on-click #(js/console.log %)}])])] + (let [c (fn key-tester [] + [:div + (for [i (range 3)] + ^{:key nil} + [:button {:on-click #(js/console.log %)}])])] (u/with-render [_div [c]] {:capture-errors true} (when (dev?)