Formatting fixes
This commit is contained in:
parent
9e0dd21ed6
commit
e981280fa7
2 changed files with 5 additions and 5 deletions
|
@ -295,6 +295,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
||||||
User.ap_followers(user),
|
User.ap_followers(user),
|
||||||
announce_activity.data["actor"]
|
announce_activity.data["actor"]
|
||||||
]
|
]
|
||||||
|
|
||||||
assert unannounce_activity.data["type"] == "Undo"
|
assert unannounce_activity.data["type"] == "Undo"
|
||||||
assert unannounce_activity.data["object"] == announce_activity.data["id"]
|
assert unannounce_activity.data["object"] == announce_activity.data["id"]
|
||||||
assert unannounce_activity.data["actor"] == user.ap_id
|
assert unannounce_activity.data["actor"] == user.ap_id
|
||||||
|
|
|
@ -276,8 +276,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
||||||
|> assign(:user, user)
|
|> assign(:user, user)
|
||||||
|> post("/api/v1/statuses/#{activity.id}/unreblog")
|
|> post("/api/v1/statuses/#{activity.id}/unreblog")
|
||||||
|
|
||||||
assert %{"id" => id, "reblogged" => false, "reblogs_count" => 0} =
|
assert %{"id" => id, "reblogged" => false, "reblogs_count" => 0} = json_response(conn, 200)
|
||||||
json_response(conn, 200)
|
|
||||||
|
|
||||||
assert to_string(activity.id) == id
|
assert to_string(activity.id) == id
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue