     end
   end
 
-
   @doc ~S"""
   Asserts any email was sent.
   """

    Enum.each(params, &assert_equal(email, &1))
  end

  defp assert_equal(email, {:subject, value}),
    do: assert(email.subject == value)


    assert_received {:email, _}
  end

  @spec assert_email_sent(Email.t() | Keyword.t() | (Email.t() -> boolean())) :: :ok | tuple | no_return

  @doc ~S"""
  Asserts `email` was sent.

  You can pass a keyword list to match on specific params
  or an anonymous function that returns a boolean.

  ## Examples

