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:
bom 2023-10-27 17:35:15 +02:00
parent a9fa5e4a35
commit bfa2007459
4 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,2 @@
(ns dda.c4k-common.macros
(:require-macros [dda.c4k-common.macros]))

View 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")))))

View 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")))))