diff options
author | lain <lain@soykaf.club> | 2020-01-30 18:27:13 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-01-30 18:27:13 +0000 |
commit | e52e78a93731db46f35552d79db1d9083be0235f (patch) | |
tree | 60a253d399e130d02236461405397ab724416bad /test/web/common_api/common_api_test.exs | |
parent | e2f2602fdc512d502cb41b8cdf07e6cc6362cf48 (diff) | |
parent | 01fb4dbeae2b08e5ffa3d5dd8eedf6c741c7b63f (diff) | |
download | pleroma-e52e78a93731db46f35552d79db1d9083be0235f.tar.gz pleroma-e52e78a93731db46f35552d79db1d9083be0235f.zip |
Merge branch 'emoji-reaction-fixie-fixes-uwu' into 'develop'
Emoji Reactions: Actually use the validation.
See merge request pleroma/pleroma!2166
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 4 |
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 |