diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-09-16 11:26:20 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-09-16 11:26:20 +0200 |
commit | c36229c4aa3bd0ac49d9dcd589790f5c47470564 (patch) | |
tree | 41069cf98a07d3cac10f8a4a5d3299c21e228c12 /test | |
parent | f0257c751611f4eed076c69260a5dc4ef81a6728 (diff) | |
download | pleroma-c36229c4aa3bd0ac49d9dcd589790f5c47470564.tar.gz pleroma-c36229c4aa3bd0ac49d9dcd589790f5c47470564.zip |
Add remote user fetching to search.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 1bef1a1fd..4261ac6b1 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -332,4 +332,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do [status] = results["statuses"] assert status["id"] == activity.id end + + test "search fetches remote accounts", %{conn: conn} do + conn = conn + |> get("/api/v1/search", %{"q" => "shp@social.heldscal.la", "resolve" => "true"}) + + assert results = json_response(conn, 200) + [account] = results["accounts"] + assert account["acct"] == "shp@social.heldscal.la" + end end |