diff options
author | lain <lain@soykaf.club> | 2019-04-15 21:58:58 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-04-15 21:58:58 +0200 |
commit | 0da985182f26927de0d2d9733816600afb89e79e (patch) | |
tree | ae5fc4d9a180877836e6309faf01d8e016385ae7 /test | |
parent | c1ebb38d3adc1d222be832405ec0d7497b61f94a (diff) | |
download | pleroma-0da985182f26927de0d2d9733816600afb89e79e.tar.gz pleroma-0da985182f26927de0d2d9733816600afb89e79e.zip |
Conversation: Return full status object, id is a string.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index d1d22edde..bd13f870c 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -334,8 +334,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do } ] = response + assert is_binary(res_id) assert unread == true - assert res_last_status == direct.id + assert res_last_status["id"] == direct.id # Apparently undocumented API endpoint res_conn = @@ -350,7 +351,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do res_conn = conn |> assign(:user, user_one) - |> get("/api/v1/statuses/#{res_last_status}/context") + |> get("/api/v1/statuses/#{res_last_status["id"]}/context") assert %{"ancestors" => [], "descendants" => []} == json_response(res_conn, 200) end |