Commit 3f5b7845 authored by kaniini's avatar kaniini
Browse files

test: rich media: parser: add malformed data regression test

parent 46dba030
Pipeline #6850 failed with stages
in 1 minute and 7 seconds
......@@ -88,4 +88,8 @@ test "parses OEmbed" do
width: "1024"
}}
end
test "rejects invalid OGP data" do
assert {:error, _} = Pleroma.Web.RichMedia.Parser.parse("http://example.com/malformed")
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment