Skip to content
Snippets Groups Projects
Commit 3f5b7845 authored by kaniini's avatar kaniini
Browse files

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

parent 46dba030
Branches
No related tags found
No related merge requests found
......@@ -88,4 +88,8 @@ defmodule Pleroma.Web.RichMedia.ParserTest do
width: "1024"
}}
end
test "rejects invalid OGP data" do
assert {:error, _} = Pleroma.Web.RichMedia.Parser.parse("http://example.com/malformed")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment