Lint
authorTusooa Zhu <tusooa@kazv.moe>
Fri, 17 Dec 2021 21:52:50 +0000 (16:52 -0500)
committerTusooa Zhu <tusooa@kazv.moe>
Fri, 17 Dec 2021 21:52:50 +0000 (16:52 -0500)
test/pleroma/web/activity_pub/side_effects_test.exs

index 30dd63d4d2565d7ea1c7ae4405cf71915dc6bdfa..c6155ed18d1191f854abc29ebb54c5da27299236 100644 (file)
@@ -586,9 +586,11 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
 
       # Mock a local-to-remote follow
       {:ok, follow_data, []} = Builder.follow(user, followed)
+
       follow_data =
         follow_data
         |> Map.put("state", "accept")
+
       {:ok, follow, _meta} = ActivityPub.persist(follow_data, local: true)
       {:ok, _, _} = SideEffects.handle(follow)
 
@@ -613,7 +615,8 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
       refute User.following?(user, followed)
       refute Pleroma.FollowingRelationship.get(user, followed)
 
-      assert Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, followed).data["state"] == "reject"
+      assert Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, followed).data["state"] ==
+               "reject"
 
       assert User.get_follow_state(user, followed) == nil
       assert User.get_follow_state(user, followed, nil) == nil