summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorensra <ensra@users.noreply.github.com>2018-08-21 15:41:32 +0100
committerensra <ensra@users.noreply.github.com>2018-08-21 15:41:32 +0100
commit2b5db840ee9fc6b6e5229983b31c918e4675e4b2 (patch)
tree6403567ef2e9a73578befac5fc99547274639292
parent175f0bebbc8ee420082b10b00e49e490f65d4c5f (diff)
downloadpleroma-2b5db840ee9fc6b6e5229983b31c918e4675e4b2.tar.gz
pleroma-2b5db840ee9fc6b6e5229983b31c918e4675e4b2.zip
attempt to add html validation to mastodon api test case
-rw-r--r--test/web/mastodon_api/account_view_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs
index 8bf194e6b..35c8a1fb0 100644
--- a/test/web/mastodon_api/account_view_test.exs
+++ b/test/web/mastodon_api/account_view_test.exs
@@ -20,6 +20,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
info: %{"note_count" => 5, "follower_count" => 3, "source_data" => source_data},
nickname: "shp@shitposter.club",
name: ":karjalanpiirakka: shp",
+ bio: "<script src=\"invalid-html\"></script><span>valid html</span>",
inserted_at: ~N[2017-08-15 15:47:06.597036]
})
@@ -33,7 +34,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
followers_count: 3,
following_count: 0,
statuses_count: 5,
- note: user.bio,
+ note: "<span>valid html</span>",
url: user.ap_id,
avatar: "http://localhost:4001/images/avi.png",
avatar_static: "http://localhost:4001/images/avi.png",