1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-14 11:47:33 +00:00

fix linting issue

This commit is contained in:
Hunter Kehoe 2024-04-07 21:40:24 -06:00
parent e4c2b938d3
commit 4111bee0c4

View file

@ -64,12 +64,12 @@ func TestTierContext(t *testing.T) {
func TestUsernameRegex(t *testing.T) {
username := "phil"
username_email := "phil@ntfy.sh"
username_email_alias := "phil+alias@ntfy.sh"
username_invalid := "phil\rocks"
usernameEmail := "phil@ntfy.sh"
usernameEmailAlias := "phil+alias@ntfy.sh"
usernameInvalid := "phil\rocks"
require.True(t, AllowedUsername(username))
require.True(t, AllowedUsername(username_email))
require.True(t, AllowedUsername(username_email_alias))
require.False(t, AllowedUsername(username_invalid))
require.True(t, AllowedUsername(usernameEmail))
require.True(t, AllowedUsername(usernameEmailAlias))
require.False(t, AllowedUsername(usernameInvalid))
}