diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/dompa/coordinates_test.cljc | 10 |
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 |
