diff options
| author | Alex Gleason <alex@alexgleason.me> | 2020-08-07 16:35:15 -0500 |
|---|---|---|
| committer | Alex Gleason <alex@alexgleason.me> | 2020-08-07 16:35:15 -0500 |
| commit | 1a5a7ba6e8a936d3138ca530d3466111e542aef6 (patch) | |
| tree | c056138ee21661af45d2363ce01282aafffb3fc0 /test/pagination_test.exs | |
| parent | bd1e2e3a58ebd702306e7a6e2df985ac07e5f7d8 (diff) | |
| parent | 47698fc322da58894dd41c1bfd5ca0376200dc5e (diff) | |
| download | pleroma-1a5a7ba6e8a936d3138ca530d3466111e542aef6.tar.gz pleroma-1a5a7ba6e8a936d3138ca530d3466111e542aef6.zip | |
Merge remote-tracking branch 'upstream/develop' into aliases
Diffstat (limited to 'test/pagination_test.exs')
| -rw-r--r-- | test/pagination_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
