summaryrefslogtreecommitdiff
path: root/test/dompa/templates_test.cljc
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-09-26 19:22:23 +0300
committerAsko Nõmm <asko@nmm.ee>2025-09-26 19:22:23 +0300
commitaf83d8c7cdf85b675016eeeecaa85bb547141f4b (patch)
treeed3b2746f44bda0619a005beab3c4b22fe6914e7 /test/dompa/templates_test.cljc
parent537a14bd9e9146cd9f963520aea75778a32ebc42 (diff)
On second thought it's really not related to templating, just nodes, so moving to nodes ns.
Diffstat (limited to 'test/dompa/templates_test.cljc')
-rw-r--r--test/dompa/templates_test.cljc24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/dompa/templates_test.cljc b/test/dompa/templates_test.cljc
deleted file mode 100644
index 6bbaf2c..0000000
--- a/test/dompa/templates_test.cljc
+++ /dev/null
@@ -1,24 +0,0 @@
-(ns dompa.templates-test
- (:require [clojure.test :refer [deftest is testing]]
- [dompa.templates :refer [defhtml $]]))
-
-(deftest node-composition-test
- (testing "a simple node"
- (is (= {:node/name :div
- :node/children [{:node/name :dompa/text
- :node/value "hello world"}]}
- ($ :div ($ "hello world")))))
-
- (testing "a fragment node"
- (is (= {:node/name :<>
- :node/children [{:node/name :span
- :node/children [{:node/name :dompa/text
- :node/value "hello"}]}
- {:node/name :span
- :node/children [{:node/name :dompa/text
- :node/value "world"}]}]}
- ($ :<>
- ($ :span
- ($ "hello"))
- ($ :span
- ($ "world")))))))