mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 07:38:28 +00:00
[MODERATION] Add test case (squash)
- Add an test case, to test an property of the function.
This commit is contained in:
parent
cfa539e590
commit
70dadb1916
|
@ -49,6 +49,8 @@ func TestListBlockedUsers(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
if assert.Len(t, blockedUsers, 1) {
|
||||
assert.EqualValues(t, 1, blockedUsers[0].ID)
|
||||
// The function returns the created Unix of the block, not that of the user.
|
||||
assert.EqualValues(t, 1671607299, blockedUsers[0].CreatedUnix)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue