From 160fdef3b175c6b87a02d30ed2f0f96f53aff00f Mon Sep 17 00:00:00 2001 From: Max Marcon Date: Sat, 7 Dec 2024 20:38:40 +0100 Subject: [PATCH] remove custom refute_push_event macro --- test/support/helpers.ex | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/support/helpers.ex b/test/support/helpers.ex index fe1a7d2..89e218d 100644 --- a/test/support/helpers.ex +++ b/test/support/helpers.ex @@ -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,