From 32a330a1763c9582461b9c85be70012a30e5a853 Mon Sep 17 00:00:00 2001 From: Mikhail Kuzmin Date: Sun, 22 Dec 2024 20:24:28 +0400 Subject: [PATCH] fix name --- test/darkleaf/di/component_test.clj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/darkleaf/di/component_test.clj b/test/darkleaf/di/component_test.clj index 46c7af1..c9abf10 100644 --- a/test/darkleaf/di/component_test.clj +++ b/test/darkleaf/di/component_test.clj @@ -12,22 +12,22 @@ (catch Exception ex# ex#))) -(defn nil-value-component-0-arity +(defn nil-component-0-arity {::di/kind :component} [] nil) -(defn nil-value-component-1-arity +(defn nil-component-1-arity {::di/kind :component} [-deps] nil) -(t/deftest nil-value-component-0-arity-test - (let [ex (try-catch (di/start `nil-value-component-0-arity))] +(t/deftest nil-component-0-arity-test + (let [ex (try-catch (di/start `nil-component-0-arity))] (t/is (= "An error during component build" (-> ex ex-message))) (t/is (= "A component fn can't return nil" (-> ex ex-cause ex-message))))) -(t/deftest nil-value-component-1-arity-test - (let [ex (try-catch (di/start `nil-value-component-1-arity))] +(t/deftest nil-component-1-arity-test + (let [ex (try-catch (di/start `nil-component-1-arity))] (t/is (= "An error during component build" (-> ex ex-message))) (t/is (= "A component fn can't return nil" (-> ex ex-cause ex-message)))))