Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Dec 22, 2024
1 parent e718862 commit 32a330a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/darkleaf/di/component_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))

0 comments on commit 32a330a

Please sign in to comment.