From: William Pitcock Date: Thu, 31 Jan 2019 16:19:53 +0000 (+0000) Subject: test: rich media: parser: add malformed data regression test X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3f5b78459661d8b2d9d6c3edf5a4010fc4a53909;p=akkoma test: rich media: parser: add malformed data regression test --- diff --git a/test/web/rich_media/parser_test.exs b/test/web/rich_media/parser_test.exs index 93a58c528..47b127cf9 100644 --- a/test/web/rich_media/parser_test.exs +++ b/test/web/rich_media/parser_test.exs @@ -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