test: transmogrifier: add test proving that transmogrifier can handle outgoing listens

This commit is contained in:
Ariadne Conill 2019-09-28 11:57:24 +00:00
parent 53506da414
commit e7309d3b60

View File

@ -1219,6 +1219,14 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert is_nil(modified["bcc"])
end
test "it can handle Listen activities" do
listen_activity = insert(:listen)
{:ok, modified} = Transmogrifier.prepare_outgoing(listen_activity.data)
assert modified["type"] == "Listen"
end
end
describe "user upgrade" do