summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-01-19 04:26:52 +0300
committerMaxim Filippov <colixer@gmail.com>2019-01-19 04:26:52 +0300
commit0a97baddddbb8bf89c806f7e5b7cd754c88f4fe5 (patch)
treea6774a8ef961d48c89748e904452704e623b19a9
parent651a1d64b53db061cc6a24099e706a64cc6d6dd8 (diff)
downloadpleroma-0a97baddddbb8bf89c806f7e5b7cd754c88f4fe5.tar.gz
pleroma-0a97baddddbb8bf89c806f7e5b7cd754c88f4fe5.zip
Format
-rw-r--r--test/web/mastodon_api/status_view_test.exs5
-rw-r--r--test/web/twitter_api/views/activity_view_test.exs3
2 files changed, 5 insertions, 3 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index 5779a030e..82bf71c70 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -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
diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs
index 4aa8c16bc..0f514dab1 100644
--- a/test/web/twitter_api/views/activity_view_test.exs
+++ b/test/web/twitter_api/views/activity_view_test.exs
@@ -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,