Skip to content

Commit

Permalink
add another test for registering a user with no username specified
Browse files Browse the repository at this point in the history
  • Loading branch information
CicadaCinema committed Jul 5, 2023
1 parent 2aeb0a6 commit b1b3e48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clientapi/routing/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b1b3e48

Please sign in to comment.