Format.
authorlain <lain@soykaf.club>
Wed, 14 Nov 2018 19:41:12 +0000 (20:41 +0100)
committerlain <lain@soykaf.club>
Wed, 14 Nov 2018 19:41:12 +0000 (20:41 +0100)
lib/pleroma/web/router.ex
test/web/twitter_api/twitter_api_controller_test.exs

index 5ca86787163d222c6453667009275926d14d6945..4623698064193905b3ec1b02888dcadf6d9aa8d7 100644 (file)
@@ -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
index 07f9c781461237fd4d3b1c7a5a0edff33252bcd0..1d45d9437e6459d105f7b631fb9deadb7438f297 100644 (file)
@@ -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