Finish implementing macro
* move macros.clj to common directory, to be included in shadow-cljs * add cljs macro-passing file * add tests to check functionality
This commit is contained in:
parent
a9fa5e4a35
commit
bfa2007459
4 changed files with 16 additions and 0 deletions
2
src/main/cljs/dda/c4k_common/macros.cljs
Normal file
2
src/main/cljs/dda/c4k_common/macros.cljs
Normal file
|
@ -0,0 +1,2 @@
|
|||
(ns dda.c4k-common.macros
|
||||
(:require-macros [dda.c4k-common.macros]))
|
7
src/test/clj/dda/c4k_common/macros_test.clj
Normal file
7
src/test/clj/dda/c4k_common/macros_test.clj
Normal file
|
@ -0,0 +1,7 @@
|
|||
(ns dda.c4k-common.macros-test
|
||||
(:require
|
||||
[clojure.test :refer [deftest is are testing run-tests]]
|
||||
[dda.c4k-common.macros :refer [inline-resources]]))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(is (= 3 (count (inline-resources "ingress")))))
|
7
src/test/cljs/dda/c4k_common/macros_test.cljs
Normal file
7
src/test/cljs/dda/c4k_common/macros_test.cljs
Normal file
|
@ -0,0 +1,7 @@
|
|||
(ns dda.c4k-common.macros-test
|
||||
(:require
|
||||
[cljs.test :refer-macros [deftest is]]
|
||||
[dda.c4k-common.macros :refer-macros [inline-resources]]))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(is (= 3 (count (inline-resources "ingress")))))
|
Loading…
Reference in a new issue