add another test for registering a user with no username specified

This commit is contained in:
CicadaCinema 2023-07-05 21:47:10 +00:00
parent 2aeb0a6663
commit b1b3e48590

View file

@ -344,6 +344,13 @@ func Test_register(t *testing.T) {
name: "successful registration",
username: "success",
},
{
name: "successful registration, sequential numeric ID",
username: "",
password: "someRandomPassword",
forceEmpty: true,
wantUsername: "3",
},
{
name: "failing registration - user already exists",
username: "success",