Skip to content

Commit

Permalink
Fixed test broken by unreliable map sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
nkezhaya committed Sep 6, 2024
1 parent 6f179fd commit d8644de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/live_phone.ex
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ defmodule LivePhone do

# And make sure we only have unique ones
|> Enum.uniq()
|> Enum.sort()
end

@spec assign_country(Socket.t(), Country.t() | String.t()) :: Socket.t()
Expand Down
2 changes: 1 addition & 1 deletion test/live_phone_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ defmodule LivePhoneTest do
)

assert component =~
"masks=\"X XX XX XX,XX XXX XX XX,XXX XX XX XXX,XX XX XX XX,XXX XX XXX XX XX\""
"masks=\"X XX XX XX,XX XX XX XX,XX XXX XX XX,XXX XX XX XXX,XXX XX XXX XX XX\""
end

test "support setting form and field from changeset (new)" do
Expand Down

0 comments on commit d8644de

Please sign in to comment.