aboutsummaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-09-30 16:38:19 +0200
committerlain <lain@soykaf.club>2019-09-30 16:38:19 +0200
commit19bc0b8c79765dc485e081651a4e4c589d18b970 (patch)
tree3a5f6851ac6d88db68cae8aab17249a705718a01 /test/web/common_api/common_api_test.exs
parent08256e9299494c0bcd1a295c6079263277b21ba7 (diff)
downloadpleroma-19bc0b8c79765dc485e081651a4e4c589d18b970.tar.gz
.
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 011fcfca9..9e3bf6cc8 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -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)