From: Ariadne Conill Date: Sat, 28 Sep 2019 11:57:24 +0000 (+0000) Subject: test: transmogrifier: add test proving that transmogrifier can handle outgoing listens X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e7309d3b606f4ede3282cf559b30ba23f62cbea5;p=akkoma test: transmogrifier: add test proving that transmogrifier can handle outgoing listens --- diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 9040c87ca..f77311b3c 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -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