Format
authorMaxim Filippov <colixer@gmail.com>
Sat, 19 Jan 2019 01:26:52 +0000 (04:26 +0300)
committerMaxim Filippov <colixer@gmail.com>
Sat, 19 Jan 2019 01:26:52 +0000 (04:26 +0300)
test/web/mastodon_api/status_view_test.exs
test/web/twitter_api/views/activity_view_test.exs

index 5779a030e16efa086eb0e38b3d117c871a16d970..82bf71c70407fe836b90623f126b512d17981b9c 100644 (file)
@@ -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
index 4aa8c16bc90f37fb4f24c3d0285f183ca86fb526..0f514dab1ca6af6361ab0d9b212a52b199dd0379 100644 (file)
@@ -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,