ソースを参照

Test for MastoAPI /api/v1/instance response structure (formatting fix).

tags/v1.1.4
Ivan Tashkinov 5年前
コミット
47b49ab1a1
1個のファイルの変更13行の追加13行の削除
  1. +13
    -13
      test/web/mastodon_api/mastodon_api_controller_test.exs

+ 13
- 13
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


読み込み中…
キャンセル
保存