mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
TransmogrifierTest: Capture the log
This commit is contained in:
parent
221f18dc33
commit
075222525c
1 changed files with 5 additions and 4 deletions
|
@ -128,10 +128,11 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
||||||
|
|
||||||
message = File.read!("test/fixtures/fep-e232.json") |> Jason.decode!()
|
message = File.read!("test/fixtures/fep-e232.json") |> Jason.decode!()
|
||||||
|
|
||||||
assert {:ok, activity} = Transmogrifier.handle_incoming(message)
|
assert capture_log(fn ->
|
||||||
|
assert {:ok, activity} = Transmogrifier.handle_incoming(message)
|
||||||
object = Object.normalize(activity)
|
object = Object.normalize(activity)
|
||||||
assert [%{"type" => "Mention"}, %{"type" => "Link"}] = object.data["tag"]
|
assert [%{"type" => "Mention"}, %{"type" => "Link"}] = object.data["tag"]
|
||||||
|
end) =~ "Error while fetching"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it accepts quote posts" do
|
test "it accepts quote posts" do
|
||||||
|
|
Loading…
Reference in a new issue