Skip to content

Commit

Permalink
Add missed-root-test
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Oct 7, 2024
1 parent f776c4a commit 914be97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/darkleaf/di/dependency_types_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
::dependency 42})]
(t/is (= [::dependency 42] @root))))

(t/deftest missed-root-test
(t/is (thrown-with-msg? ExceptionInfo
#"\AMissing dependency darkleaf.di.dependency-types-test/not-found\z"
(di/start `not-found))))

(t/deftest required-missed-test
(t/is (thrown-with-msg? ExceptionInfo
#"\AMissing dependency :darkleaf.di.dependency-types-test/dependency\z"
Expand Down

0 comments on commit 914be97

Please sign in to comment.