about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-15 20:04:02 +0100
committerAlan Pearce2014-09-15 20:04:02 +0100
commitc2d85f7328e7d08de1405638748d3c78ce833cc3 (patch)
tree88b2a1c4ccd7b9a7bac2e3f8fc7d3f0e34852abc /test
parentafd0a7540b18dd713a93ad144307da8fac0b2857 (diff)
downloadmicroformats-c2d85f7328e7d08de1405638748d3c78ce833cc3.tar.lz
microformats-c2d85f7328e7d08de1405638748d3c78ce833cc3.tar.zst
microformats-c2d85f7328e7d08de1405638748d3c78ce833cc3.zip
Add basic example test
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index d8b7225..0602119 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -102,3 +102,6 @@
 
 (expect {:items [] :rels {}}
         (parse ""))
+
+(expect {:items [{:properties {:name "Example User"}}] :rels {}}
+        (parse "<div class=\"h-card\"><p class=\"p-name\">Example User</p</div>"))