tests: fix a lot of the remaining test failures

This commit is contained in:
William Pitcock 2018-11-25 22:49:39 +00:00
commit f7e15d3257
5 changed files with 31 additions and 30 deletions

View file

@ -36,8 +36,7 @@ defmodule Pleroma.Web.CommonAPI.Test do
"content_type" => "text/html"
})
object =
Object.normalize(activity.data["object"])
object = Object.normalize(activity.data["object"])
assert object.data["content"] == "<p><b>2hu</b></p>alert('xss')"
end
@ -53,8 +52,7 @@ defmodule Pleroma.Web.CommonAPI.Test do
"content_type" => "text/markdown"
})
object =
Object.normalize(activity.data["object"])
object = Object.normalize(activity.data["object"])
assert object.data["content"] == "<p><b>2hu</b></p>alert('xss')"
end