summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAsko Nõmm <asko@repl.ee>2025-10-19 18:14:01 +0300
committerGitHub <noreply@github.com>2025-10-19 18:14:01 +0300
commit35de9bc8aaaa165ec3f2efb04691bdca3dd5e446 (patch)
tree205661db6741879a8b04c8023350fcb0a07cf0e6 /test
parent9276f08031242c13ee25c8f89c22e4f65cff004b (diff)
parentad98bfddb09c6be641ff6755bb8caefc50f1636d (diff)
Merge pull request #4 from askonomm/3-attribute-value-containing-forward-slash-breaks-parsingv1.0.1
#3: Fixes an issue where if the attribute value contained forward sla…
Diffstat (limited to 'test')
-rw-r--r--test/dompa/coordinates_test.cljc10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dompa/coordinates_test.cljc b/test/dompa/coordinates_test.cljc
index 79248e3..1a69114 100644
--- a/test/dompa/coordinates_test.cljc
+++ b/test/dompa/coordinates_test.cljc
@@ -115,6 +115,16 @@
coordinates/compose
coordinates/unify
coordinates/->nodes))))
+
+ (testing "Parse attributes with forward slashes in them"
+ (is (= [{:node/name :meta,
+ :node/attrs {:name "route-pattern",
+ :content "/:user_id/:repository",
+ :data-turbo-transient true}}]
+ (-> "<meta name=\"route-pattern\" content=\"/:user_id/:repository\" data-turbo-transient>"
+ coordinates/compose
+ coordinates/unify
+ coordinates/->nodes))))
(testing "Create nodes with attributes"
(is (= [{:node/name :div