projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98d9dcd
)
Add a test to ensure #39 is fixed.
author
lain
<lain@soykaf.club>
Sun, 20 Jan 2019 10:48:53 +0000
(11:48 +0100)
committer
lain
<lain@soykaf.club>
Sun, 20 Jan 2019 10:48:53 +0000
(11:48 +0100)
test/web/common_api/common_api_test.exs
patch
|
blob
|
history
diff --git
a/test/web/common_api/common_api_test.exs
b/test/web/common_api/common_api_test.exs
index 9ac805f2433cf6d76541ae232bbf547c5638f830..a7d9e61613b6f94785e3cf3298dcc5e4de4cc1e2 100644
(file)
--- 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:"})