diff options
author | Francis Dinh <normandy@firemail.cc> | 2018-03-27 02:07:07 -0400 |
---|---|---|
committer | Francis Dinh <normandy@firemail.cc> | 2018-03-27 02:07:07 -0400 |
commit | 5ba2f4b6d8ba9f80a392b1298758f257d59cb853 (patch) | |
tree | 2a52bac5f7ee2cb1bd82369ed6b10ae740d8351e /test/formatter_test.exs | |
parent | 61692c7efae4f8c6dc0e5b07276979f4237dee33 (diff) | |
download | pleroma-5ba2f4b6d8ba9f80a392b1298758f257d59cb853.tar.gz pleroma-5ba2f4b6d8ba9f80a392b1298758f257d59cb853.zip |
Update tests to reflect hashtag link changes
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r-- | test/formatter_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs index 0e915d8d5..9ec2cc9f2 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -7,7 +7,7 @@ defmodule Pleroma.FormatterTest do describe ".add_hashtag_links" do test "turns hashtags into links" do text = "I love #cofe and #2hu" - expected_text = "I love #<a href='http://localhost:4001/tag/cofe' rel='tag'>cofe</a> and #<a href='http://localhost:4001/tag/2hu' rel='tag'>2hu</a>" + expected_text = "I love <a href='http://localhost:4001/tag/cofe' rel='tag'>#cofe</a> and <a href='http://localhost:4001/tag/2hu' rel='tag'>#2hu</a>" tags = Formatter.parse_tags(text) assert expected_text == Formatter.add_hashtag_links({[], text}, tags) |> Formatter.finalize |