Skip to content

Commit 6beb730

Browse files
committed
Minor update
1 parent 558c704 commit 6beb730

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

test/support/factory.ex

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,18 @@ defmodule Marqeta.Test.BypassHelper do
461461
end
462462

463463
@doc "Sets up a paginated list GET expectation with `items` as data."
464-
@spec expect_list(term(), String.t(), list(), keyword()) :: :ok
464+
@type expect_list_opts :: [
465+
{:status, pos_integer()}
466+
| {:is_more, boolean()}
467+
| {:start_index, non_neg_integer()}
468+
]
469+
470+
@spec expect_list(
471+
Bypass.t(),
472+
binary(),
473+
list(),
474+
expect_list_opts()
475+
) :: term()
465476
def expect_list(bypass, path, items, opts \\ []) do
466477
status = Keyword.get(opts, :status, 200)
467478
is_more = Keyword.get(opts, :is_more, false)

0 commit comments

Comments
 (0)