From 27aa136aacb43084089234df59649bc81e53d63c Mon Sep 17 00:00:00 2001 From: lain Date: Wed, 14 Nov 2018 20:41:12 +0100 Subject: [PATCH] Format. --- lib/pleroma/web/router.ex | 1 - test/web/twitter_api/twitter_api_controller_test.exs | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 5ca867871..462369806 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -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 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 @@ 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