Test for MastoAPI /api/v1/instance response structure (formatting fix).
This commit is contained in:
parent
caf0e9cf33
commit
47b49ab1a1
@ -1813,19 +1813,19 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|||||||
|
|
||||||
# Note: not checking for "max_toot_chars" since it's optional
|
# Note: not checking for "max_toot_chars" since it's optional
|
||||||
assert %{
|
assert %{
|
||||||
"uri" => _,
|
"uri" => _,
|
||||||
"title" => _,
|
"title" => _,
|
||||||
"description" => _,
|
"description" => _,
|
||||||
"version" => _,
|
"version" => _,
|
||||||
"email" => _,
|
"email" => _,
|
||||||
"urls" => %{
|
"urls" => %{
|
||||||
"streaming_api" => _
|
"streaming_api" => _
|
||||||
},
|
},
|
||||||
"stats" => _,
|
"stats" => _,
|
||||||
"thumbnail" => _,
|
"thumbnail" => _,
|
||||||
"languages" => _,
|
"languages" => _,
|
||||||
"registrations" => _
|
"registrations" => _
|
||||||
} = result
|
} = result
|
||||||
end
|
end
|
||||||
|
|
||||||
test "get instance stats", %{conn: conn} do
|
test "get instance stats", %{conn: conn} do
|
||||||
|
Loading…
Reference in New Issue
Block a user