aboutsummaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-02-03 21:42:36 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-02-03 21:42:36 +0300
commit2c40c8b4a2890e60abe8d67a3c8af4a88d225b60 (patch)
treebe7ff77c4af8b1264c57e8aa8161e80396ca3fbc /test/web/common_api/common_api_test.exs
parent21a2a054070c26d7be1a0e453e5f40b20fbd59f2 (diff)
parentc27d1d65bfd60effdb45359697141c136e156177 (diff)
downloadpleroma-2c40c8b4a2890e60abe8d67a3c8af4a88d225b60.tar.gz
Merge branch 'develop' into issue/1383
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index f8963e42e..8fa0c6faa 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -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