diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/microformats/parser_expectations.clj | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 0602119..9c8ce1d 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -12,6 +12,12 @@ (expect "Foo <strong>bar</strong>" (apply str (#'microformats.parser/node-to-html '("Foo " {:tag :strong, :attrs nil, :content ("bar")})))) +(expect {:name "Name"} + (parse-p (first (html-snippet "<p class=\"p-name\"><span class=\"value\">Name</span></p>")))) + +(expect {:name "Name Endname"} + (parse-p (first (html-snippet "<p class=\"p-name\"><span class=\"value\">Name</span> (this should not be included) <span class=\"value\">Endname</span></p>")))) + (expect {:name "Example User"} (parse-p (first (html-snippet "<p class=\"p-name\">Example User</p>")))) |