 
       # assert an email with specific field(s) was sent
       iex> assert_email_sent subject: "Hello, Avengers!"
+
+      # assert an email that satisfies a condition
+      iex> assert_email_sent fn email -> length(email.to) == 2 end
   """
   def assert_email_sent(%Email{} = email) do
     assert_received {:email, ^email}

    assert_received {:email, _}
  end

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

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

  You pass a keyword list to match on specific params.

  ## Examples


    end
  end

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