summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-17 15:46:59 +0300
committerrinpatch <rinpatch@sdf.org>2019-04-17 15:46:59 +0300
commitff8d76c670eb25213948974d03bbc389421558a6 (patch)
treeab95b3af50e07d7e6b04861cc2aa6380c9e72ec1 /test/web/common_api/common_api_test.exs
parentc3a20528060e4fb95292dd93768d9afc8926e66e (diff)
downloadpleroma-ff8d76c670eb25213948974d03bbc389421558a6.tar.gz
pleroma-ff8d76c670eb25213948974d03bbc389421558a6.zip
Refactor all tests that acessed the embeded object
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index e12cc04c8..3d2bb8929 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -42,7 +42,7 @@ defmodule Pleroma.Web.CommonAPITest do
user = insert(:user)
{:ok, activity} = CommonAPI.post(user, %{"status" => ":moominmamma:"})
- assert activity.data["object"]["emoji"]["moominmamma"]
+ assert Object.normalize(activity).data["emoji"]["moominmamma"]
end
test "it adds emoji when updating profiles" do