fix: technical debts left by the Sites, Authors and SEO slices, plus backend support for the new Sites and Authors pagination
This commit is contained in:
1 parent
9f4ce426a8
commit
daf3594316
86 files changed
+4223
-1485
No files matched your search
@@ -347,3 +347,14 @@ func TestListMediaUseCasePaging(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestMediaPaginationHugePage(t *testing.T) {
|
||||
env := newMediaEnv(t)
|
||||
seedBulkImages(env, 3)
|
||||
|
||||
got, _ := env.list(t, "?page=138000000000000001&size=100")
|
||||
|
||||
if got.Total != 3 || len(got.Items) != 0 || got.Page != 138000000000000001 || got.Size != 100 {
|
||||
t.Errorf("unexpected envelope total=%d items=%d page=%d size=%d", got.Total, len(got.Items), got.Page, got.Size)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user