summaryrefslogtreecommitdiff
path: root/test/dompa
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-10-19 23:17:34 +0300
committerAsko Nõmm <asko@nmm.ee>2025-10-19 23:17:34 +0300
commit79159a47202cda8bdfa74e3e594f69ab1f6c9e2a (patch)
tree29ab638914f1493f122f41d2c14da7b4b7286745 /test/dompa
parent23542524c4b545c2489ec1a429f810cbfcd003cd (diff)
#5: Fixen an issue where same-name children of a root would cause the nodes to close too early.
Diffstat (limited to 'test/dompa')
-rw-r--r--test/dompa/coordinates_test.cljc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dompa/coordinates_test.cljc b/test/dompa/coordinates_test.cljc
index 1a69114..9b05826 100644
--- a/test/dompa/coordinates_test.cljc
+++ b/test/dompa/coordinates_test.cljc
@@ -66,13 +66,13 @@
(testing "Unify coordinates with invalid HTML"
(let [html "<div>hello"]
(is (= {:html html
- :coordinates [[0 4] [5 9]]}
+ :coordinates [[5 9]]}
(-> (coordinates/compose html)
coordinates/unify))))
(let [html "<div>hello</span>"]
(is (= {:html html
- :coordinates [[0 4] [5 9]]}
+ :coordinates [[5 9]]}
(-> (coordinates/compose html)
coordinates/unify)))))