mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 15:45:27 +01:00
Format
This commit is contained in:
parent
651a1d64b5
commit
0a97badddd
@ -120,8 +120,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
||||
status = StatusView.render("status.json", %{activity: activity})
|
||||
|
||||
actor = Repo.get_by(User, ap_id: activity.actor)
|
||||
|
||||
assert status.mentions == Enum.map([user, actor], fn u -> AccountView.render("mention.json", %{user: u}) end)
|
||||
|
||||
assert status.mentions ==
|
||||
Enum.map([user, actor], fn u -> AccountView.render("mention.json", %{user: u}) end)
|
||||
end
|
||||
|
||||
test "attachments" do
|
||||
|
@ -118,7 +118,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
|
||||
expected = %{
|
||||
"activity_type" => "post",
|
||||
"attachments" => [],
|
||||
"attentions" => Enum.map([other_user, user], fn u -> UserView.render("show.json", %{user: u}) end),
|
||||
"attentions" =>
|
||||
Enum.map([other_user, user], fn u -> UserView.render("show.json", %{user: u}) end),
|
||||
"created_at" => activity.data["object"]["published"] |> Utils.date_to_asctime(),
|
||||
"external_url" => activity.data["object"]["id"],
|
||||
"fave_num" => 0,
|
||||
|
Loading…
Reference in New Issue
Block a user