mail not whitelisted when not set

This commit is contained in:
Willem van den Ende 2025-09-14 13:13:10 +01:00
parent a913f2ca22
commit 135448398d
2 changed files with 7 additions and 7 deletions

View File

@ -4,15 +4,15 @@ defmodule BasicSignupWhitelist do
"""
@doc """
Hello world.
false
## Examples
iex> BasicSignupWhitelist.hello()
:world
iex> BasicSignupWhitelist.mail_whitelisted("joe@example.com")
false
"""
def hello do
:world
def mail_whitelisted(_email) do
false
end
end

View File

@ -2,7 +2,7 @@ defmodule BasicSignupWhitelistTest do
use ExUnit.Case
doctest BasicSignupWhitelist
test "greets the world" do
assert BasicSignupWhitelist.hello() == :world
test "When not set, not whitelisted" do
assert BasicSignupWhitelist.mail_whitelisted("joe@example.com") == false
end
end