diff --git a/src/darkleaf/di/core.clj b/src/darkleaf/di/core.clj index 787b27e..eff9718 100644 --- a/src/darkleaf/di/core.clj +++ b/src/darkleaf/di/core.clj @@ -639,8 +639,8 @@ (demolish [_ _]) p/FactoryDescription (description [_] - {:kind :service - :var variable}))) + {:kind :service + :variable variable}))) (defn- var->service [variable] (let [deps (dependencies-fn variable)] diff --git a/test/darkleaf/di/tutorial/x_inspect_test.clj b/test/darkleaf/di/tutorial/x_inspect_test.clj index c3d342b..24f8d6f 100644 --- a/test/darkleaf/di/tutorial/x_inspect_test.clj +++ b/test/darkleaf/di/tutorial/x_inspect_test.clj @@ -31,8 +31,8 @@ {:key `c :dependencies {`a :required `b :optional}} {:key `a - :description {:kind :service - :var #'a}} + :description {:kind :service + :variable #'a}} {:key `b :dependencies {`a :required}}] (di/inspect `c)))) @@ -48,7 +48,7 @@ :middleware ::di/update-key :target `a}} {:key `a+di-update-key#0-target - :description {:kind :service - :var #'a}} + :description {:kind :service + :variable #'a}} {:key `a+di-update-key#0-f}] (di/inspect `a (di/update-key `a str)))))