From be4d3b017df6ca096dca7038ee3376c51d2dc7b6 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sat, 4 Oct 2025 17:05:58 +0300 Subject: Improve test coverage --- test/dompa/html_test.cljc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/dompa/html_test.cljc b/test/dompa/html_test.cljc index 8565fdc..0bab86e 100644 --- a/test/dompa/html_test.cljc +++ b/test/dompa/html_test.cljc @@ -4,13 +4,14 @@ (deftest coordinates-test (testing "HTML to coordinates" - (is (= [[0 15] - [5 9]] + (is (= {:coordinates [[0 15] + [5 9]] + :html "
hello
"} (html/->coordinates "
hello
"))))) (deftest nodes-test (testing "HTML to nodes" - (is (= [{:node/name :div + (is (= [{:node/name :div :node/attrs {} :node/children [{:node/name :dompa/text :node/value "hello"}]}] -- cgit v1.2.3