From ef9fd8ea65835bf2f44faa62b671cb7d91388bcd Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 2 Nov 2022 13:58:20 +0100 Subject: [PATCH] Fix test and update deps * Exception testing now happens for clj only * If testing for cljs is required we need tests for cljs --- package.json | 62 +++++++++---------- src/test/cljc/dda/c4k_common/common_test.cljc | 19 +++--- 2 files changed, 41 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 904966a..158d3d4 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,32 @@ { - "name": "c4k-common-cljs", - "description": "Contains predicates and tools for c4k", - "author": "meissa GmbH", - "version": "0.2.0-SNAPSHOT", - "homepage": "https://gitlab.com/domaindrivenarchitecture/c4k-common#readme", - "repository": "https://www.npmjs.com/package/c4k-common", - "license": "APACHE2", - "main": "c4k-common.js", - "bin": { - "c4k-common": "./c4k-common.js" - }, - "keywords": [ - "cljs", - "k8s", - "c4k", - "deployment", - "yaml", - "convention4kubernetes" - ], - "bugs": { - "url": "https://gitlab.com/domaindrivenarchitecture/c4k-common/issues" - }, - "dependencies": { - "js-base64": "^3.6.1", - "js-yaml": "^4.0.0" - }, - "devDependencies": { - "shadow-cljs": "^2.11.18", - "source-map-support": "^0.5.19" - } -} + "name": "c4k-common-cljs", + "description": "Contains predicates and tools for c4k", + "author": "meissa GmbH", + "version": "0.2.0-SNAPSHOT", + "homepage": "https://gitlab.com/domaindrivenarchitecture/c4k-common#readme", + "repository": "https://www.npmjs.com/package/c4k-common", + "license": "APACHE2", + "main": "c4k-common.js", + "bin": { + "c4k-common": "./c4k-common.js" + }, + "keywords": [ + "cljs", + "k8s", + "c4k", + "deployment", + "yaml", + "convention4kubernetes" + ], + "bugs": { + "url": "https://gitlab.com/domaindrivenarchitecture/c4k-common/issues" + }, + "dependencies": { + "js-base64": "^3.7.2", + "js-yaml": "^4.0.0" + }, + "devDependencies": { + "shadow-cljs": "^2.11.18", + "source-map-support": "^0.5.19" + } +} \ No newline at end of file diff --git a/src/test/cljc/dda/c4k_common/common_test.cljc b/src/test/cljc/dda/c4k_common/common_test.cljc index e0f6d36..7bdaeb5 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"} [])))))