summaryrefslogtreecommitdiff
path: root/test/formatter_test.exs
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-05-27 13:16:10 +0000
committerlambda <pleromagit@rogerbraun.net>2018-05-27 13:16:10 +0000
commit8216d5e40e31970b450524d39b634a84f6ec415c (patch)
treeda0bfd697125a6116278c8cd9548affe41b94d18 /test/formatter_test.exs
parenta9e36e5a64017502689a65fb329a301e428ebfaf (diff)
parentd7eb2e1b6563bd298824f1e3fd691bc68764b3fa (diff)
downloadpleroma-8216d5e40e31970b450524d39b634a84f6ec415c.tar.gz
pleroma-8216d5e40e31970b450524d39b634a84f6ec415c.zip
Merge branch 'feature/mastodon-context-microformat' into 'develop'
formatter: use class='mention' on links to user profiles See merge request pleroma/pleroma!178
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r--test/formatter_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index e89b36663..c2b3d4ac0 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -109,9 +109,9 @@ defmodule Pleroma.FormatterTest do
Enum.each(subs, fn {uuid, _} -> assert String.contains?(text, uuid) end)
expected_text =
- "<span><a href='#{gsimg.ap_id}'>@<span>gsimg</span></a></span> According to <span><a href='#{
+ "<span><a class='mention' href='#{gsimg.ap_id}'>@<span>gsimg</span></a></span> According to <span><a class='mention' href='#{
"https://archeme/@archaeme"
- }'>@<span>archaeme</span></a></span>, that is @daggsy. Also hello <span><a href='#{
+ }'>@<span>archaeme</span></a></span>, that is @daggsy. Also hello <span><a class='mention' href='#{
archaeme_remote.ap_id
}'>@<span>archaeme</span></a></span>"