Commit 27aa136a authored by lain's avatar lain
Browse files

Format.

parent 7b170cd6
Pipeline #4470 passed with stages
in 6 minutes and 35 seconds
......@@ -248,7 +248,6 @@ defmodule Pleroma.Web.Router do
)
get("/statuses/networkpublic_timeline", TwitterAPI.Controller, :public_and_external_timeline)
end
scope "/api", Pleroma.Web, as: :twitter_api_search do
......
......@@ -1218,12 +1218,13 @@ test "it returns users, ordered by similarity", %{conn: conn} 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment