1
0

fix(user): allow deleting a user if they have a default project

Resolves https://github.com/go-vikunja/api/issues/78
This commit is contained in:
kolaente
2023-08-23 16:10:51 +02:00
parent 40037f25f2
commit acb03c430e
5 changed files with 44 additions and 3 deletions

View File

@ -399,7 +399,7 @@ func TestListUsers(t *testing.T) {
all, err := ListAllUsers(s)
assert.NoError(t, err)
assert.Len(t, all, 15)
assert.Len(t, all, 16)
})
t.Run("no search term", func(t *testing.T) {
db.LoadAndAssertFixtures(t)
@ -512,7 +512,7 @@ func TestListUsers(t *testing.T) {
MatchFuzzily: true,
})
assert.NoError(t, err)
assert.Len(t, all, 15)
assert.Len(t, all, 16)
})
}