[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
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ func TestListBlockedUsers(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
if assert.Len(t, blockedUsers, 1) {
|
if assert.Len(t, blockedUsers, 1) {
|
||||||
assert.EqualValues(t, 1, blockedUsers[0].ID)
|
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