aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/support/factory.ex5
-rw-r--r--test/web/mastodon_api/status_view_test.exs9
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