summaryrefslogtreecommitdiff
path: root/test/formatter_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-03-27 15:22:54 +0200
committerlain <lain@soykaf.club>2018-03-27 15:22:54 +0200
commitc6cd1a56f03193062edd257fe90048f4df39f20c (patch)
tree7236e221a0b38f6b5b8de110079844731fe2ca2c /test/formatter_test.exs
parent20982ab4d0ebe9f2509dacf89682efeac30080c5 (diff)
parent2e683b10d54030c045c570b6ce44b9b3291ae6e1 (diff)
downloadpleroma-c6cd1a56f03193062edd257fe90048f4df39f20c.tar.gz
pleroma-c6cd1a56f03193062edd257fe90048f4df39f20c.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into develop
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r--test/formatter_test.exs2
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