X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpagination_test.exs;h=e526f23e89731c27fa0c63476aaced445748ab38;hb=9c672ecbb5d4477cd16d2139a2cb66d3923ac5c8;hp=9165427aee6030584eb4edb199091f86082bcedf;hpb=4ec2fb967e0eb0559e39a6d698107f6af4d7a891;p=akkoma diff --git a/test/pagination_test.exs b/test/pagination_test.exs index 9165427ae..e526f23e8 100644 --- a/test/pagination_test.exs +++ b/test/pagination_test.exs @@ -54,6 +54,20 @@ defmodule Pleroma.PaginationTest do assert length(paginated) == 1 end + + test "handles id gracefully", %{notes: notes} do + id = Enum.at(notes, 1).id |> Integer.to_string() + + paginated = + Pagination.fetch_paginated(Object, %{ + id: "9s99Hq44Cnv8PKBwWG", + max_id: id, + limit: 20, + offset: 0 + }) + + assert length(paginated) == 1 + end end describe "offset" do