X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpagination_test.exs;h=e526f23e89731c27fa0c63476aaced445748ab38;hb=bdf57b8ef438f32999ef917777b13161320644a8;hp=9165427aee6030584eb4edb199091f86082bcedf;hpb=604a83ae3efe21b231fb524203a883a062102546;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