mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-13 14:27:17 +00:00
chore: add email blocklist unit test
This commit is contained in:
parent
cf1fda81f6
commit
a511e37572
9 changed files with 92 additions and 21 deletions
|
@ -67,8 +67,3 @@ func TestEmailAddressValidate(t *testing.T) {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestEmailDomainAllowList(t *testing.T) {
|
||||
res := IsEmailDomainAllowed("someuser@localhost.localdomain")
|
||||
assert.True(t, res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue