From 1047d623be9019703ff6139ba49160c3d7656632 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 28 Nov 2024 13:26:08 +0200 Subject: [PATCH] Fix --- test/reagenttest/testreagent.cljs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/reagenttest/testreagent.cljs b/test/reagenttest/testreagent.cljs index afd9b655..57b7cc07 100644 --- a/test/reagenttest/testreagent.cljs +++ b/test/reagenttest/testreagent.cljs @@ -522,19 +522,19 @@ (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 [] + (let [c (fn key-tester [] [:div (for [i (range 3)] ^{:key nil}