diff options
author | Roger Braun <rbraun@Bobble.local> | 2017-10-23 16:27:51 +0200 |
---|---|---|
committer | Roger Braun <rbraun@Bobble.local> | 2017-10-23 16:27:51 +0200 |
commit | 64bc38e009208fa4f4409f6930d5117dc291c2f5 (patch) | |
tree | 1faa9af1a53bb713a62a5428c572a982e46bea99 /test | |
parent | 38f3908c14d3b8fcfe522d4c92bde022dcc682e3 (diff) | |
download | pleroma-64bc38e009208fa4f4409f6930d5117dc291c2f5.tar.gz |
MastoAPI: Add emoji output.
Diffstat (limited to 'test')
-rw-r--r-- | test/support/factory.ex | 5 | ||||
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index f499024a2..33bacd40c 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -26,7 +26,10 @@ defmodule Pleroma.Factory do "likes" => [], "like_count" => 0, "context" => "2hu", - "tag" => ["2hu"] + "tag" => ["2hu"], + "emoji" => %{ + "2hu" => "corndog.png" + } } %Pleroma.Object{ diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 1575b1d6e..dc5cdfe9a 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -41,7 +41,14 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do name: "Web", website: nil }, - language: nil + language: nil, + emojis: [ + %{ + shortcode: "2hu", + url: "corndog.png", + static_url: "corndog.png" + } + ] } assert status == expected |