1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-15 19:42:04 +00:00

chore: add email blocklist unit test

(cherry picked from commit a511e37572)
This commit is contained in:
famfo 2025-08-23 01:57:35 +02:00 committed by forgejo-backport-action
parent 6226145b0a
commit 872258d708
9 changed files with 92 additions and 21 deletions

View file

@ -67,8 +67,3 @@ func TestEmailAddressValidate(t *testing.T) {
})
}
}
func TestEmailDomainAllowList(t *testing.T) {
res := IsEmailDomainAllowed("someuser@localhost.localdomain")
assert.True(t, res)
}