diff options
author | lain <lain@soykaf.club> | 2020-05-08 13:13:37 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-08 13:13:37 +0200 |
commit | 7637ef42033b2da79ca61e9dee8fb4187d1a8257 (patch) | |
tree | 9b42481388e596d5b5c24a8e3fd22fcdcd69bb46 /test/web/common_api/common_api_test.exs | |
parent | fb2d284d2897e8b789da4f81ae8d288373d2bf76 (diff) | |
parent | fbcc53760e6fcd393513c05a5bd7a4a6a6f3b731 (diff) | |
download | pleroma-7637ef42033b2da79ca61e9dee8fb4187d1a8257.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index ef7c479c0..61affda5d 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -408,7 +408,7 @@ defmodule Pleroma.Web.CommonAPITest do {:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"}) - {:ok, reaction, _} = CommonAPI.react_with_emoji(activity.id, user, "👍") + {:ok, reaction} = CommonAPI.react_with_emoji(activity.id, user, "👍") assert reaction.data["actor"] == user.ap_id assert reaction.data["content"] == "👍" @@ -423,12 +423,13 @@ defmodule Pleroma.Web.CommonAPITest do other_user = insert(:user) {:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"}) - {:ok, reaction, _} = CommonAPI.react_with_emoji(activity.id, user, "👍") + {:ok, reaction} = CommonAPI.react_with_emoji(activity.id, user, "👍") - {:ok, unreaction, _} = CommonAPI.unreact_with_emoji(activity.id, user, "👍") + {:ok, unreaction} = CommonAPI.unreact_with_emoji(activity.id, user, "👍") assert unreaction.data["type"] == "Undo" assert unreaction.data["object"] == reaction.data["id"] + assert unreaction.local end test "repeating a status" do |