Skip to content

Commit

Permalink
refactor: rename custom cursors
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldcurtis committed Dec 29, 2020
1 parent 90faeef commit 05ab2cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/lib/absinthe/relay/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ defmodule Absinthe.Relay.ConnectionTest do
setup do
[
records: [
{%{name: "Dan"}, %{role: "contributor", cursor: "first_custom_cursor"}},
{%{name: "Bob"}, %{role: "contributor", cursor: "end_custom_cursor"}}
{%{name: "Dan"}, %{role: "contributor", cursor: "start_cursor"}},
{%{name: "Bob"}, %{role: "contributor", cursor: "end_cursor"}}
]
]
end
Expand All @@ -590,10 +590,10 @@ defmodule Absinthe.Relay.ConnectionTest do
assert(
{:ok,
%{
edges: [%{cursor: "first_custom_cursor"}, %{cursor: "end_custom_cursor"}],
edges: [%{cursor: "start_cursor"}, %{cursor: "end_cursor"}],
page_info: %{
start_cursor: "first_custom_cursor",
end_cursor: "end_custom_cursor"
start_cursor: "start_cursor",
end_cursor: "end_cursor"
}
}} = Connection.from_list(records, %{first: 2})
)
Expand Down

0 comments on commit 05ab2cb

Please sign in to comment.