Test for MastoAPI /api/v1/instance response structure (formatting fix).
authorIvan Tashkinov <ivant.business@gmail.com>
Tue, 26 Mar 2019 15:18:36 +0000 (18:18 +0300)
committerIvan Tashkinov <ivant.business@gmail.com>
Tue, 26 Mar 2019 15:18:36 +0000 (18:18 +0300)
test/web/mastodon_api/mastodon_api_controller_test.exs

index aa9abe97db472571456b2a216a17e98ab6a05bbb..21e88eda94af2eeb40a0be49a5c4fdff7baad5d2 100644 (file)
@@ -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