summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-03-26 18:18:36 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-03-26 18:18:36 +0300
commit47b49ab1a1453ac2068cca336ad6db9877c3e64b (patch)
tree9a1ec986521ae5ae8db80c08da5a7665d8878421
parentcaf0e9cf331dc70b8f055d741bb40bb8bf564f59 (diff)
downloadpleroma-47b49ab1a1453ac2068cca336ad6db9877c3e64b.tar.gz
pleroma-47b49ab1a1453ac2068cca336ad6db9877c3e64b.zip
Test for MastoAPI /api/v1/instance response structure (formatting fix).
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index aa9abe97d..21e88eda9 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -1813,19 +1813,19 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
# Note: not checking for "max_toot_chars" since it's optional
assert %{
- "uri" => _,
- "title" => _,
- "description" => _,
- "version" => _,
- "email" => _,
- "urls" => %{
- "streaming_api" => _
- },
- "stats" => _,
- "thumbnail" => _,
- "languages" => _,
- "registrations" => _
- } = result
+ "uri" => _,
+ "title" => _,
+ "description" => _,
+ "version" => _,
+ "email" => _,
+ "urls" => %{
+ "streaming_api" => _
+ },
+ "stats" => _,
+ "thumbnail" => _,
+ "languages" => _,
+ "registrations" => _
+ } = result
end
test "get instance stats", %{conn: conn} do