diff options
| author | Francis Dinh <normandy@firemail.cc> | 2018-04-25 01:43:45 -0400 | 
|---|---|---|
| committer | Francis Dinh <normandy@firemail.cc> | 2018-04-25 01:43:45 -0400 | 
| commit | e981280fa74ddccb02c7deb27bd5cc5e85f9fc8f (patch) | |
| tree | a330874b99774ba37a464673c4e48a56d1f6d6d2 /test/web | |
| parent | 9e0dd21ed637ec7b884570b2ad8705b5fac72580 (diff) | |
| download | pleroma-e981280fa74ddccb02c7deb27bd5cc5e85f9fc8f.tar.gz pleroma-e981280fa74ddccb02c7deb27bd5cc5e85f9fc8f.zip | |
Formatting fixes
Diffstat (limited to 'test/web')
| -rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 7 | ||||
| -rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 3 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 31ac10d70..d9f00613a 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -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 diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 2a24037d7..14f8c3c42 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -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 | 
