TransmogrifierTest: Capture the log
This commit is contained in:
parent
221f18dc33
commit
075222525c
|
@ -128,10 +128,11 @@ test "it keeps link tags" do
|
||||||
|
|
||||||
message = File.read!("test/fixtures/fep-e232.json") |> Jason.decode!()
|
message = File.read!("test/fixtures/fep-e232.json") |> Jason.decode!()
|
||||||
|
|
||||||
|
assert capture_log(fn ->
|
||||||
assert {:ok, activity} = Transmogrifier.handle_incoming(message)
|
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 New Issue