"Mob Session DONE [ci-skip]"

This commit is contained in:
jem 2019-12-06 10:00:08 +01:00
parent 3182421a5e
commit 1c9c4f3e60
2 changed files with 4 additions and 2 deletions

View file

@ -7,9 +7,11 @@
[fs-prefix resource-path]
(let [file-from-cp (io/file (io/resource resource-path))
file-from-fs (io/file (str fs-prefix resource-path))]
(println file-from-cp)
(println file-from-fs)
(try
(when (.exists file-from-fs)
file-from-fs)
file-from-fs)
(catch Exception e
(try (when (.exists file-from-cp)
file-from-cp)

View file

@ -19,7 +19,7 @@
(is
(.exists (sut/file-from-cp-or-filesystem "./test-resources" "templates/themes/bootstrap4-test/js")))
(is
(.exists (sut/file-from-cp-or-filesystem "./" ".gitignore"))))
(.exists (sut/file-from-cp-or-filesystem "./" ".gitkeep"))))
(deftest test-copy-resources-from-theme
(is (do