We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc30aa4 commit 2cc028eCopy full SHA for 2cc028e
src/integrant/core.cljc
@@ -551,7 +551,7 @@
551
(walk/postwalk #(if (profile? %) (deprofile-1 % profile-keys) %) coll)))
552
553
(defn- normal-map? [x]
554
- (and (map? x) (not (reflike? x))))
+ (and (map? x) (not (reflike? x)) (not (profile? x))))
555
556
(defn- nested-values [idx [k v]]
557
(if (and (normal-map? v) (seq v))
test/integrant/core_test.cljc
@@ -731,4 +731,8 @@
731
(is (= (ig/expand {::mod-prof 1} (ig/deprofile [:dev]))
732
{::a {:dev 1}}))
733
(is (= (ig/expand {::mod-prof 2} (ig/deprofile [:test]))
734
- {::a {:test 2}}))))
+ {::a {:test 2}}))
735
+ (is (= (-> {::x (ig/profile {:a 1, :b 2})}
736
+ (ig/expand (ig/deprofile [:a]))
737
+ (ig/deprofile [:a]))
738
+ {::x 1}))))
0 commit comments