From: lain Date: Sun, 20 Jan 2019 10:48:53 +0000 (+0100) Subject: Add a test to ensure #39 is fixed. X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=be0fb5dec47e5dc69aaef5f9c4f6910eba92b48a;p=akkoma Add a test to ensure #39 is fixed. --- diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 9ac805f24..a7d9e6161 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -17,6 +17,13 @@ defmodule Pleroma.Web.CommonAPI.Test do assert activity.data["object"]["tag"] == ["2hu"] end + test "it adds emoji in the object" do + user = insert(:user) + {:ok, activity} = CommonAPI.post(user, %{"status" => ":moominmamma:"}) + + assert activity.data["object"]["emoji"]["moominmamma"] + end + test "it adds emoji when updating profiles" do user = insert(:user, %{name: ":karjalanpiirakka:"})