From b1b3e485908b80aa022d6470cc056d68368a9e03 Mon Sep 17 00:00:00 2001 From: CicadaCinema <52425971+CicadaCinema@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:47:10 +0000 Subject: [PATCH] add another test for registering a user with no username specified --- clientapi/routing/register_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clientapi/routing/register_test.go b/clientapi/routing/register_test.go index de89c9a64..e730bfa60 100644 --- a/clientapi/routing/register_test.go +++ b/clientapi/routing/register_test.go @@ -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",