This commit is contained in:
lain 2019-09-30 16:38:19 +02:00
commit 19bc0b8c79
4 changed files with 47 additions and 0 deletions

View file

@ -236,6 +236,16 @@ defmodule Pleroma.Web.CommonAPITest do
# TODO: test error case.
end
test "unreacting to a status with an emoji" do
user = insert(:user)
other_user = insert(:user)
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
{:ok, reaction, _} = CommonAPI.react_with_emoji(activity.id, user, "👍")
assert false
end
test "repeating a status" do
user = insert(:user)
other_user = insert(:user)