Formatting fixes
authorFrancis Dinh <normandy@firemail.cc>
Wed, 25 Apr 2018 05:43:45 +0000 (01:43 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Wed, 25 Apr 2018 05:43:45 +0000 (01:43 -0400)
test/web/activity_pub/activity_pub_test.exs
test/web/mastodon_api/mastodon_api_controller_test.exs

index 31ac10d7079bce086465f9599f95eea76ac66aee..d9f00613ad378ef106a278f53932938b6b89dc4c 100644 (file)
@@ -280,8 +280,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
       user = insert(:user)
 
       # Unannouncing an object that is not announced does nothing
-      #{:ok, object} = ActivityPub.unannounce(user, object)
-      #assert object.data["announcement_count"] == 0
+      # {:ok, object} = ActivityPub.unannounce(user, object)
+      # assert object.data["announcement_count"] == 0
 
       {:ok, announce_activity, object} = ActivityPub.announce(user, object)
       assert object.data["announcement_count"] == 1
@@ -294,7 +294,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
       assert unannounce_activity.data["to"] == [
                User.ap_followers(user),
                announce_activity.data["actor"]
-      ]
+             ]
+
       assert unannounce_activity.data["type"] == "Undo"
       assert unannounce_activity.data["object"] == announce_activity.data["id"]
       assert unannounce_activity.data["actor"] == user.ap_id
index 2a24037d7b5b5fdb359845e9014e2fe43301fcf2..14f8c3c42cf47cb1971078dc15412e36a698eda3 100644 (file)
@@ -276,8 +276,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
         |> assign(:user, user)
         |> post("/api/v1/statuses/#{activity.id}/unreblog")
 
-      assert %{"id" => id, "reblogged" => false, "reblogs_count" => 0} = 
-               json_response(conn, 200)
+      assert %{"id" => id, "reblogged" => false, "reblogs_count" => 0} = json_response(conn, 200)
 
       assert to_string(activity.id) == id
     end