aboutsummaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-11-14 20:41:12 +0100
committerlain <lain@soykaf.club>2018-11-14 20:41:12 +0100
commit27aa136aacb43084089234df59649bc81e53d63c (patch)
tree59495724844dd6d6998c3ea4f5609c6ec1ef3757 /test/web/twitter_api/twitter_api_controller_test.exs
parent7b170cd6161166e153ad54856d5f1cf189f4e3ae (diff)
downloadpleroma-27aa136aacb43084089234df59649bc81e53d63c.tar.gz
Format.
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index 07f9c7814..1d45d9437 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -1218,12 +1218,13 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
user_two = insert(:user, %{name: "ean"})
user_three = insert(:user, %{name: "ebn"})
- resp = conn
- |> get(twitter_api_search__path(conn, :search_user), query: "eal")
- |> json_response(200)
+ resp =
+ conn
+ |> get(twitter_api_search__path(conn, :search_user), query: "eal")
+ |> json_response(200)
assert length(resp) == 3
- assert [user.id, user_two.id, user_three.id] == Enum.map(resp, fn (%{"id" => id}) -> id end)
+ assert [user.id, user_two.id, user_three.id] == Enum.map(resp, fn %{"id" => id} -> id end)
end
end
end