diff options
author | lain <lain@soykaf.club> | 2019-10-02 15:38:57 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-10-02 15:38:57 +0200 |
commit | 9cfe9a57c5a31318abf02fa510d4fdf78505bd97 (patch) | |
tree | 6932fd7ad62dc0a37a1404d26fa3c229e8e4e09e /test/web/common_api/common_api_test.exs | |
parent | dfe5c958eb94326f5a7743c9de0de073260db926 (diff) | |
download | pleroma-9cfe9a57c5a31318abf02fa510d4fdf78505bd97.tar.gz |
CommonAPI: Add unreactions.
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index e048ed217..b9e785885 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -243,7 +243,10 @@ defmodule Pleroma.Web.CommonAPITest do {:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"}) {:ok, reaction, _} = CommonAPI.react_with_emoji(activity.id, user, "👍") - assert false + {:ok, unreaction, _} = CommonAPI.unreact_with_emoji(activity.id, user, "👍") + + assert unreaction.data["type"] == "Undo" + assert unreaction.data["object"] == reaction.data["id"] end test "repeating a status" do |