summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/representers
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-18 16:41:16 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-18 16:41:16 +0200
commit48f9df2391557db6a9f9dae37b9d39d6cd5f612a (patch)
tree9902628481c930e48b003b280516c0bf28260152 /test/web/twitter_api/representers
parenta92a9dce94d2a2502750a4a258560283c21e2777 (diff)
downloadpleroma-48f9df2391557db6a9f9dae37b9d39d6cd5f612a.tar.gz
pleroma-48f9df2391557db6a9f9dae37b9d39d6cd5f612a.zip
Keep newlines around.
Diffstat (limited to 'test/web/twitter_api/representers')
-rw-r--r--test/web/twitter_api/representers/activity_representer_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs
index e3d88e74f..dce6025c4 100644
--- a/test/web/twitter_api/representers/activity_representer_test.exs
+++ b/test/web/twitter_api/representers/activity_representer_test.exs
@@ -67,7 +67,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
}
}
- content_html = "Some #content mentioning <a href='#{mentioned_user.ap_id}'>@shp</shp>"
+ content_html = "Some #content #mentioning <a href='#{mentioned_user.ap_id}'>@shp</shp>"
content = HtmlSanitizeEx.strip_tags(content_html)
date = DateTime.from_naive!(~N[2016-05-24 13:26:08.003], "Etc/UTC") |> DateTime.to_iso8601
@@ -95,7 +95,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
"like_count" => 5,
"announcement_count" => 3,
"context" => "2hu",
- "tag" => ["nsfw", "content"]
+ "tag" => ["content", "mentioning", "nsfw"]
},
"published" => date,
"context" => "2hu"