This commit is contained in:
@@ -16,12 +16,12 @@ func TestSignupValidation(t *testing.T) {
|
||||
body map[string]any
|
||||
}{
|
||||
{"empty", map[string]any{}},
|
||||
{"missing password", map[string]any{"email": "ok@computer.test"}},
|
||||
{"missing password", map[string]any{"email": "ok@superbrain.test"}},
|
||||
{"invalid email", map[string]any{"email": "not-an-email", "password": "long-enough-password"}},
|
||||
{"email with display name", map[string]any{"email": "Name <ok@computer.test>", "password": "long-enough-password"}},
|
||||
{"short password", map[string]any{"email": "ok@computer.test", "password": "short"}},
|
||||
{"7 boundary password", map[string]any{"email": "ok@computer.test", "password": "1234567"}},
|
||||
{"overlong password", map[string]any{"email": "ok@computer.test", "password": strings.Repeat("a", 73)}},
|
||||
{"email with display name", map[string]any{"email": "Name <ok@superbrain.test>", "password": "long-enough-password"}},
|
||||
{"short password", map[string]any{"email": "ok@superbrain.test", "password": "short"}},
|
||||
{"7 boundary password", map[string]any{"email": "ok@superbrain.test", "password": "1234567"}},
|
||||
{"overlong password", map[string]any{"email": "ok@superbrain.test", "password": strings.Repeat("a", 73)}},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user