This commit is contained in:
jem 2020-02-07 18:02:16 +01:00
parent 5330124428
commit 16984044d2

View file

@ -38,11 +38,13 @@
(sut/create-resource "dummy" (sut/path-if-exists fs-root "dummy"))))))) (sut/create-resource "dummy" (sut/path-if-exists fs-root "dummy")))))))
(deftest test-get-resources (deftest test-get-resources
;(is (is
; (= [{:virtual-path "dummy" :source-type :filesystem :resource-type :dir} (= [{:virtual-path "dummy" :source-type :filesystem :resource-type :dir}
; {:virtual-path "dummy/dummy_from_fs" :source-type :filesystem :resource-type :file}] {:virtual-path "dummy/dummy_from_fs" :source-type :filesystem :resource-type :file}
; (map ftt/filter-object {:virtual-path "dummy/dummy2" :source-type :filesystem :resource-type :dir}
; (sut/get-resources fs-root "" ["dummy"])))) {:virtual-path "dummy/dummy2/dummy_common" :source-type :filesystem :resource-type :file}]
(map ftt/filter-object
(sut/get-resources fs-root "" ["dummy"]))))
(is (is
(= [{:virtual-path "dummy_from_fs" :source-type :filesystem :resource-type :file}] (= [{:virtual-path "dummy_from_fs" :source-type :filesystem :resource-type :file}]
(map ftt/filter-object (map ftt/filter-object