Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Oct 30, 2024
1 parent c6202cd commit 88aeca2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/darkleaf/di/update_key_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
{::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)))))
(t/deftest expected--update-not-used-key-test
(with-open [system (di/start ::component
{::component 1
::not-used-component 2}
(di/update-key ::not-used-component inc))]
(t/is (= 1 @system))))

0 comments on commit 88aeca2

Please sign in to comment.