defmodule Ello.Search.PageTest do
  use Ello.Search.Case
  alias Ello.Core.{Repo, Factory, Network}
  alias Ello.Search.Page
  alias Ello.Search.User.{Search, Index}

  setup do
    Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()})
    Index.delete
    Index.create
    {:ok, %{}}
  end

  test "from_results - handles empty results gracefully", _ do
    results = %{"_shards" => %{"failed" => 0, "successful" => 5,
      "total" => 5}, "hits" => %{"hits" => [], "max_score" => nil, "total" => 0},
    "timed_out" => false, "took" => 2}

     assert Page.from_results(results, [], %{})
  end
end

defmodule Ello.Search.PageTest do
  use Ello.Search.Case
  alias Ello.Search.Page

  test "from_results - handles empty results gracefully", _ do
    results = %{"_shards" => %{"failed" => 0, "successful" => 5,
      "total" => 5}, "hits" => %{"hits" => [], "max_score" => nil, "total" => 0},
    "timed_out" => false, "took" => 2}

     assert Page.from_results(results, [], %{})
  end
end

Remove unneeded aliases and setup.
Remove unneeded aliases and setup.

This fixes some compilation warnings when running tests.

ello/apex,ello/apex,ello/apex