mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-18 23:51:01 +00:00
Merge branch 'add-custom-emoji-test' into 'develop'
Add a test to ensure #39 is fixed. See merge request pleroma/pleroma!687
This commit is contained in:
commit
501fba33d6
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,13 @@ defmodule Pleroma.Web.CommonAPI.Test do
|
||||||
assert activity.data["object"]["tag"] == ["2hu"]
|
assert activity.data["object"]["tag"] == ["2hu"]
|
||||||
end
|
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
|
test "it adds emoji when updating profiles" do
|
||||||
user = insert(:user, %{name: ":karjalanpiirakka:"})
|
user = insert(:user, %{name: ":karjalanpiirakka:"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue