summaryrefslogtreecommitdiff
path: root/test/dompa/html_test.cljc
diff options
context:
space:
mode:
Diffstat (limited to 'test/dompa/html_test.cljc')
-rw-r--r--test/dompa/html_test.cljc7
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"}]}]