Created
July 1, 2019 06:17
-
-
Save saitouena/08146d8fa2ba5d0b05604f6ec28f3f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deftest test-render-multi-line | |
(let [template (str "a\n" | |
"{{#mp}}\n" | |
"{{b}}\n" | |
"{{/mp}}\n" | |
"\n\n" | |
"c\n") | |
result (str "a\n" | |
"hoge\n" | |
"\n\n" | |
"c\n")] | |
(is (= (render template {:mp {:b "hoge"}}) result)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cljstacheのリポジトリをとってきて、
git submodule update --init --recursive
してcore-test.cljcにつけると実行lein test-cljs
できる。普通にテスト通ってしまうが...