Skip to content

Commit

Permalink
update key test
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Oct 29, 2024
1 parent 9b15044 commit c6202cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/darkleaf/di/update_key_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@
(di/start ::component
{::component 1}
(di/update-key ::component-with-typo inc)))))

(t/deftest bug2--update-non-existent-key-test
(t/is (thrown-with-msg?
ExceptionInfo
#"\ACan't update non-existent key :darkleaf.di.update-key-test/component-with-typo\z"
(di/start ::component
{::component 1
::not-used-component 2}
(di/update-key ::not-used-component inc)))))

0 comments on commit c6202cd

Please sign in to comment.