From ed2cf33c61816d6dd41cd2133ebcf0aa62a28e01 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 14 Sep 2025 14:51:29 +0300 Subject: Fix issue where a text node coordinate would not be created if it's the only node in text. --- test/dompa/coordinates_test.cljc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/dompa/coordinates_test.cljc b/test/dompa/coordinates_test.cljc index efa6df5..42543b4 100644 --- a/test/dompa/coordinates_test.cljc +++ b/test/dompa/coordinates_test.cljc @@ -7,8 +7,11 @@ (is (= [[0 4] [5 9] [10 15]] (coordinates/compose "
hello
")))) (testing "Create first-pass coordinates with invalid HTML" - (is (= [[0 4]] (coordinates/compose "
hello"))) + (is (= [[0 4] [5 9]] (coordinates/compose "
hello"))) (is (= [] (coordinates/compose "
"))))) \ No newline at end of file -- cgit v1.2.3