diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-06-14 14:46:18 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-06-14 14:46:18 +0200 |
commit | 83c657afa557ac3cdfd2e3888511b403857de8aa (patch) | |
tree | 6013154129657c78b60a762b32d5baf3627876f2 /test/web/twitter_api/twitter_api_test.exs | |
parent | 1af9c777365f3b54edcb572cea4e2e6f185b3099 (diff) | |
download | pleroma-83c657afa557ac3cdfd2e3888511b403857de8aa.tar.gz |
Do some basic escaping.
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index da880e67c..6848413cc 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -34,7 +34,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do { :ok, activity = %Activity{} } = TwitterAPI.create_status(user, input) - assert get_in(activity.data, ["object", "content"]) == "Hello again, <a href='shp'>@shp</a>.<br>\nThis is on another line. #2hu #epic #phantasmagoric<br>\n<a href='http://example.org/image.jpg' class='attachment'>image.jpg</a>" + assert get_in(activity.data, ["object", "content"]) == "Hello again, <a href='shp'>@shp</a>.<br>\nThis is on another line. #2hu #epic #phantasmagoric<br>\n<a href=\"http://example.org/image.jpg\" class='attachment'>image.jpg</a>" assert get_in(activity.data, ["object", "type"]) == "Note" assert get_in(activity.data, ["object", "actor"]) == user.ap_id assert get_in(activity.data, ["actor"]) == user.ap_id |