From 2ee2985139cef4407f1a2f135533022060d1dcee Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 8 Nov 2022 13:52:49 +0100 Subject: [PATCH] Cleanup --- src/main/cljs/dda/c4k_common/yaml.cljs | 5 ----- src/test/cljc/dda/c4k_common/common_test.cljc | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/main/cljs/dda/c4k_common/yaml.cljs b/src/main/cljs/dda/c4k_common/yaml.cljs index f64612f..33fd5c8 100644 --- a/src/main/cljs/dda/c4k_common/yaml.cljs +++ b/src/main/cljs/dda/c4k_common/yaml.cljs @@ -28,8 +28,3 @@ (defmethod load-as-edn :default [resource-name] (from-string (load-resource resource-name))) - -(defmulti allowed-resources dispatch-by-resource-name) - -(defmethod allowed-resources :default [] - []) diff --git a/src/test/cljc/dda/c4k_common/common_test.cljc b/src/test/cljc/dda/c4k_common/common_test.cljc index e0f6d36..f662af5 100644 --- a/src/test/cljc/dda/c4k_common/common_test.cljc +++ b/src/test/cljc/dda/c4k_common/common_test.cljc @@ -15,12 +15,13 @@ (is (= ["a1" "a2" "b1"] (cut/concat-vec '("a1" "a2") '("b1"))))) -(deftest should-refuse-illegal-inputs - (is (thrown? Exception - (cut/concat-vec ["a1" "a2"] "b1"))) - (is (thrown? Exception - (cut/concat-vec ["a1" "a2"] nil))) - (is (thrown? Exception - (cut/concat-vec ["a1" "a2"] 2))) - (is (thrown? Exception - (cut/concat-vec {"a1" "a2"} [])))) \ No newline at end of file +#?(:clj + (deftest should-refuse-illegal-inputs + (is (thrown? Exception + (cut/concat-vec ["a1" "a2"] "b1"))) + (is (thrown? Exception + (cut/concat-vec ["a1" "a2"] nil))) + (is (thrown? Exception + (cut/concat-vec ["a1" "a2"] 2))) + (is (thrown? Exception + (cut/concat-vec {"a1" "a2"} []))))) \ No newline at end of file