diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-17 18:03:49 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-17 18:03:49 +0300 |
commit | 2bfae25a1ff735499e15cb431314503f34097a6b (patch) | |
tree | 279ecb74aa6a5e58273d83105ef0b975a27249d5 /test/formatter_test.exs | |
parent | ce2efd1ee25d6e06c4bc5c0d97aad7b84c7c6874 (diff) | |
download | pleroma-2bfae25a1ff735499e15cb431314503f34097a6b.tar.gz pleroma-2bfae25a1ff735499e15cb431314503f34097a6b.zip |
[#491] Made user bio preserve full nicknames (nick@host).
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r-- | test/formatter_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs index bd8844458..7040f1c27 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -150,7 +150,7 @@ defmodule Pleroma.FormatterTest do archaeme.id }' class='u-url mention' href='#{"https://archeme/@archa_eme_"}'>@<span>archa_eme_</span></a></span>, that is @daggsy. Also hello <span class='h-card'><a data-user='#{ archaeme_remote.id - }' class='u-url mention' href='#{archaeme_remote.ap_id}'>@<span>archaeme</span></a></span>" + }' class='u-url mention' href='#{archaeme_remote.ap_id}'>@<span>archaeme@archae.me</span></a></span>" assert expected_text == Formatter.finalize({subs, text}) end @@ -168,7 +168,7 @@ defmodule Pleroma.FormatterTest do Enum.each(subs, fn {uuid, _} -> assert String.contains?(text, uuid) end) expected_text = - "<span class='h-card'><a data-user='#{mike.id}' class='u-url mention' href='#{mike.ap_id}'>@<span>mike</span></a></span> test" + "<span class='h-card'><a data-user='#{mike.id}' class='u-url mention' href='#{mike.ap_id}'>@<span>mike@osada.macgirvin.com</span></a></span> test" assert expected_text == Formatter.finalize({subs, text}) end |