add last outstanding test
This commit is contained in:
parent
4959cb9d95
commit
f0e71deb7d
1 changed files with 6 additions and 4 deletions
|
@ -77,15 +77,17 @@
|
||||||
(is (=
|
(is (=
|
||||||
[]
|
[]
|
||||||
(sut/get-resources-recursive "" "templates/themes/bootstrap4-test" ["not-existing"])))
|
(sut/get-resources-recursive "" "templates/themes/bootstrap4-test" ["not-existing"])))
|
||||||
; TODO: one dummy from jar and one dummy from cp-filesystem and one from filesystem
|
|
||||||
; get resources and see all
|
|
||||||
; add test here
|
|
||||||
; TODO: fix dir.list on jar
|
|
||||||
(is (=
|
(is (=
|
||||||
[{:virtual-path "dummy", :source-type :java-classpath-jar, :resource-type :dir}
|
[{:virtual-path "dummy", :source-type :java-classpath-jar, :resource-type :dir}
|
||||||
{:virtual-path "dummy/dummy_from_jar", :source-type :java-classpath-jar, :resource-type :file}]
|
{:virtual-path "dummy/dummy_from_jar", :source-type :java-classpath-jar, :resource-type :file}]
|
||||||
(map ftt/filter-object
|
(map ftt/filter-object
|
||||||
(sut/get-resources-recursive "not-existing" "" ["dummy"]))))
|
(sut/get-resources-recursive "not-existing" "" ["dummy"]))))
|
||||||
|
(is (=
|
||||||
|
[{:virtual-path "dummy", :source-type :java-classpath-jar, :resource-type :dir}
|
||||||
|
{:virtual-path "dummy/dummy_from_jar", :source-type :java-classpath-jar, :resource-type :file}
|
||||||
|
{:virtual-path "dummy/dummy_from_fs", :source-type :java-classpath-jar, :resource-type :file}]
|
||||||
|
(map ftt/filter-object
|
||||||
|
(sut/get-resources-recursive "fs_root" "" ["dummy"]))))
|
||||||
(is (=
|
(is (=
|
||||||
[{:virtual-path "js/dummy.js"
|
[{:virtual-path "js/dummy.js"
|
||||||
:source-type :java-classpath-filesystem
|
:source-type :java-classpath-filesystem
|
||||||
|
|
Loading…
Reference in a new issue