Skip to content

Commit

Permalink
remove custom refute_push_event macro
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarcon committed Dec 7, 2024
1 parent 34540c3 commit 160fdef
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/support/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ defmodule LiveSelect.TestHelpers do

@component_id "my_form_city_search_live_select_component"

unless macro_exported?(Phoenix.LiveViewTest, :refute_push_event, 4) do
defmacro refute_push_event(view, event, payload, timeout \\ 100) do
quote do
%{proxy: {ref, _topic, _}} = unquote(view)

refute_receive {^ref, {:push_event, unquote(event), unquote(payload)}}, unquote(timeout)
end
end
end

def select_nth_option(live, n, opts \\ []) do
opts =
Keyword.validate!(opts,
Expand Down

0 comments on commit 160fdef

Please sign in to comment.