From c6202cd95eeb7906c3938ea5af3a849961b2b2ca Mon Sep 17 00:00:00 2001 From: Mikhail Kuzmin Date: Tue, 29 Oct 2024 20:28:45 +0400 Subject: [PATCH] update key test --- test/darkleaf/di/update_key_test.clj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/darkleaf/di/update_key_test.clj b/test/darkleaf/di/update_key_test.clj index 4d7fbbc..973ac5a 100644 --- a/test/darkleaf/di/update_key_test.clj +++ b/test/darkleaf/di/update_key_test.clj @@ -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)))))