Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

chore(lint): Fix bug when a token is given public only

(cherry picked from commit 14d85597f8)
This commit is contained in:
Earl Warren 2024-10-10 14:41:02 +03:00
parent ea5a8c7809
commit 1f9104d96f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -51,7 +51,7 @@ func TestAPIUserSearchLoggedIn(t *testing.T) {
for _, user := range results.Data { for _, user := range results.Data {
assert.Contains(t, user.UserName, query) assert.Contains(t, user.UserName, query)
assert.NotEmpty(t, user.Email) assert.NotEmpty(t, user.Email)
assert.True(t, user.Visibility == "public") assert.Equal(t, "public", user.Visibility)
} }
} }