tests: fix a lot of the remaining test failures
This commit is contained in:
parent
4ca4c83871
commit
f7e15d3257
5 changed files with 31 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue