(require 'el-mock) (ert-deftest mastodon-tl:from-toot () "Should return the value for KEY in a list." (should (string= (mastodon-tl--from-toot "foo" '(("foo" . "bar"))) "bar"))) (ert-deftest mastodon-tl:remove-html:remove-p-and-span () "Should remove

and tags that are not parsed by `html2text'." (let ((input "

foobar

")) (should (string= (mastodon-tl--remove-html input) "foobar\n")))) (ert-deftest mastodon-tl:remove-html:remove-hcard-span () "Should remove tags with a class of 'h-card'." (let ((input "foobar")) (should (string= (mastodon-tl--remove-html input) "foobar"))))