[MODERATION] Add test case (squash)

- Add an test case, to test an property of the function.
This commit is contained in:
Gusted 2023-07-21 04:54:06 +02:00
parent cfa539e590
commit 70dadb1916
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -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)
}
}