move some test to appropriet plc
This commit is contained in:
parent
16984044d2
commit
b6d1b9adcd
2 changed files with 2 additions and 36 deletions
|
@ -17,5 +17,7 @@
|
||||||
(deftest should-find-path-on-cp
|
(deftest should-find-path-on-cp
|
||||||
(is
|
(is
|
||||||
(sut/path-if-exists "dummy"))
|
(sut/path-if-exists "dummy"))
|
||||||
|
(is
|
||||||
|
(sut/path-if-exists "dummy" "dummy_from_jar"))
|
||||||
(is
|
(is
|
||||||
(sut/path-if-exists "dummy_only_in_cp_fs")))
|
(sut/path-if-exists "dummy_only_in_cp_fs")))
|
||||||
|
|
|
@ -19,42 +19,6 @@
|
||||||
|
|
||||||
(def target "target/tmp")
|
(def target "target/tmp")
|
||||||
|
|
||||||
(deftest test-resource-from-cp-or-fs
|
|
||||||
(is
|
|
||||||
(some? (sut/resource-from-cp-or-fs
|
|
||||||
"not-existing-filesystem-path"
|
|
||||||
""
|
|
||||||
"dummy")))
|
|
||||||
(is
|
|
||||||
(ftt/verify-path-exists
|
|
||||||
(:java-path
|
|
||||||
(sut/resource-from-cp-or-fs
|
|
||||||
"./test-resources"
|
|
||||||
"templates/themes/bootstrap4-test"
|
|
||||||
"js"))))
|
|
||||||
(is
|
|
||||||
(ftt/verify-path-exists
|
|
||||||
(:java-path
|
|
||||||
(sut/resource-from-cp-or-fs
|
|
||||||
"./" "" ".gitkeep"))))
|
|
||||||
(is
|
|
||||||
(some? (sut/resource-from-cp-or-fs
|
|
||||||
"./test-resources"
|
|
||||||
"templates/themes/bootstrap4-test"
|
|
||||||
"js")))
|
|
||||||
(is
|
|
||||||
(some? (sut/resource-from-cp-or-fs
|
|
||||||
"./not-existing-so-load-from-cp" "" ".gitkeep")))
|
|
||||||
(is (=
|
|
||||||
{:virtual-path "js/subdir"
|
|
||||||
:source-type :java-classpath-filesystem
|
|
||||||
:resource-type :dir}
|
|
||||||
(ftt/filter-object
|
|
||||||
(sut/resource-from-cp-or-fs
|
|
||||||
"./not-existing-so-load-from-cp"
|
|
||||||
"templates/themes/bootstrap4-test"
|
|
||||||
"js/subdir")))))
|
|
||||||
|
|
||||||
(deftest test-list-entries-for-dir
|
(deftest test-list-entries-for-dir
|
||||||
(is (= ["subdummy.js", "test.js"]
|
(is (= ["subdummy.js", "test.js"]
|
||||||
(seq
|
(seq
|
||||||
|
|
Loading…
Reference in a new issue