diff options
| author | Asko Nõmm <asko@nmm.ee> | 2025-10-04 17:05:58 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2025-10-04 17:05:58 +0300 |
| commit | be4d3b017df6ca096dca7038ee3376c51d2dc7b6 (patch) | |
| tree | 4d41d9e9c0af6dfec8b4e63ceaf0eb20a330c118 /test/dompa/html_test.cljc | |
| parent | 3037fdb5c30c7dbbaa7122798ac6328dc43df4ad (diff) | |
Improve test coverage
Diffstat (limited to 'test/dompa/html_test.cljc')
| -rw-r--r-- | test/dompa/html_test.cljc | 7 |
1 files 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 "<div>hello</div>"} (html/->coordinates "<div>hello</div>"))))) (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"}]}] |
