diff options
| author | lain <lain@soykaf.club> | 2018-11-14 20:41:12 +0100 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2018-11-14 20:41:12 +0100 | 
| commit | 27aa136aacb43084089234df59649bc81e53d63c (patch) | |
| tree | 59495724844dd6d6998c3ea4f5609c6ec1ef3757 /test | |
| parent | 7b170cd6161166e153ad54856d5f1cf189f4e3ae (diff) | |
| download | pleroma-27aa136aacb43084089234df59649bc81e53d63c.tar.gz pleroma-27aa136aacb43084089234df59649bc81e53d63c.zip | |
Format.
Diffstat (limited to 'test')
| -rw-r--r-- | test/web/twitter_api/twitter_api_controller_test.exs | 9 | 
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 | 
