mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-23 11:49:19 +01:00
fix linting issue
This commit is contained in:
parent
e4c2b938d3
commit
4111bee0c4
1 changed files with 6 additions and 6 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue