Skip to content

Commit

Permalink
chore: run mix format and add it to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robuye committed Mar 19, 2024
1 parent 7fd5517 commit 02cc4cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ jobs:
- run: mix compile --warnings-as-errors
- run: mix dialyzer --halt-exit-status
- run: mix deps.unlock --check-unused
- run: mix format --check-formatted
9 changes: 7 additions & 2 deletions test/stripe/util_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ defmodule Stripe.UtilTest do

assert object_name_to_module("billing_portal.session") == Stripe.BillingPortal.Session
assert object_name_to_module("checkout.session") == Stripe.Checkout.Session
assert object_name_to_module("identity.verification_report") == Stripe.Identity.VerificationReport
assert object_name_to_module("identity.verification_session") == Stripe.Identity.VerificationSession

assert object_name_to_module("identity.verification_report") ==
Stripe.Identity.VerificationReport

assert object_name_to_module("identity.verification_session") ==
Stripe.Identity.VerificationSession

assert object_name_to_module("issuing.authorization") == Stripe.Issuing.Authorization
assert object_name_to_module("issuing.card") == Stripe.Issuing.Card
assert object_name_to_module("issuing.cardholder") == Stripe.Issuing.Cardholder
Expand Down
2 changes: 1 addition & 1 deletion test/support/stripe_mock_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Stripe.StripeMockTest do

defp assert_port_open(port) do
delay()
assert {:ok, socket} = :gen_tcp.connect('localhost', port, [])
assert {:ok, socket} = :gen_tcp.connect(~c"localhost", port, [])
:gen_tcp.close(socket)
end

Expand Down

0 comments on commit 02cc4cf

Please sign in to comment.