Fix test and update deps

* Exception testing now happens for clj only
  * If testing for cljs is required we need tests for cljs
merge-requests/2/head^2
erik 2 years ago
parent e6074cdb4d
commit ef9fd8ea65

@ -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"
}
}

@ -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"} []))))
#?(: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"} [])))))

Loading…
Cancel
Save