.
[akkoma] / test / web / common_api / common_api_test.exs
index 011fcfca95b9f432175bd20314240574629d8e72..9e3bf6cc8dc6710e6c32db14cfe0af7fab2734c0 100644 (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)