Emoji Reactions: Actually use the validation.

This commit is contained in:
lain 2020-01-30 16:07:37 +01:00
commit a0d9d42eaa
3 changed files with 27 additions and 2 deletions

View file

@ -238,7 +238,9 @@ defmodule Pleroma.Web.CommonAPITest do
assert reaction.data["actor"] == user.ap_id
assert reaction.data["content"] == "👍"
# TODO: test error case.
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
{:error, _} = CommonAPI.react_with_emoji(activity.id, user, ".")
end
test "unreacting to a status with an emoji" do