Skip to content

Commit

Permalink
rerecord webhook events and recipient fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
FairfullB committed Nov 11, 2024
1 parent 10cfa9a commit 5b5c0da
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
Binary file modified test/fixtures/recipients/create.fixture
Binary file not shown.
Binary file modified test/fixtures/recipients/create_from_token.fixture
Binary file not shown.
Binary file modified test/fixtures/recipients/get.fixture
Binary file not shown.
Binary file modified test/fixtures/recipients/get_all.fixture
Binary file not shown.
Binary file modified test/fixtures/recipients/update.fixture
Binary file not shown.
Binary file modified test/fixtures/webhooks/events/get.fixture
Binary file not shown.
Binary file modified test/fixtures/webhooks/events/get_all.fixture
Binary file not shown.
6 changes: 3 additions & 3 deletions test/webhooks/webhook_events_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ defmodule PINXS.Webhooks.WebhookEventTest do
with_proxy("webhooks/events/get_all.fixture") do
{:ok, events} = Event.get_all(client)

assert length(events) == 8
assert length(events) == 75
end
end

test "Gets webhook event" do
with_proxy("webhooks/events/get.fixture") do
{:ok, event} = Event.get("evt_JV_7Ri698ge902K6AQyuCg", client)
{:ok, event} = Event.get("evt_4t2D3ges-DNWyaxfg0zQ8Q", client)


assert event.token == "evt_JV_7Ri698ge902K6AQyuCg"
assert event.token == "evt_4t2D3ges-DNWyaxfg0zQ8Q"
assert event.type == "transfer.created"
end
end
Expand Down

0 comments on commit 5b5c0da

Please sign in to comment.