Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33102855
custom_emoji_controller_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
776 B
Referenced Files
None
Subscribers
None
custom_emoji_controller_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.MastodonAPI.CustomEmojiControllerTest
do
use
Pleroma.Web.ConnCase
,
async
:
true
test
"with tags"
,
%{
conn
:
conn
}
do
assert
resp
=
conn
|>
get
(
"/api/v1/custom_emojis"
)
|>
json_response_and_validate_schema
(
200
)
assert
[
emoji
|
_body
]
=
resp
assert
Map
.
has_key?
(
emoji
,
"shortcode"
)
assert
Map
.
has_key?
(
emoji
,
"static_url"
)
assert
Map
.
has_key?
(
emoji
,
"tags"
)
assert
is_list
(
emoji
[
"tags"
])
assert
Map
.
has_key?
(
emoji
,
"category"
)
assert
Map
.
has_key?
(
emoji
,
"url"
)
assert
Map
.
has_key?
(
emoji
,
"visible_in_picker"
)
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 1:12 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
952975
Default Alt Text
custom_emoji_controller_test.exs (776 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment