feat: articles pagination
This commit is contained in:
1 parent
a2d224240c
commit
73f4b539fe
45 files changed
+3528
-317
No files matched your search
@@ -234,7 +234,7 @@ func TestArticlePublishingHttp(t *testing.T) {
|
||||
t.Fatalf("expected status 200, got %d", listRec.Code)
|
||||
}
|
||||
var articles []domainArticle.Article
|
||||
if err := json.Unmarshal(listRec.Body.Bytes(), &articles); err != nil {
|
||||
if err := json.Unmarshal(articleItemsJSON(listRec.Body.Bytes()), &articles); err != nil {
|
||||
t.Fatalf("failed to decode response: %v", err)
|
||||
}
|
||||
found := false
|
||||
@@ -304,7 +304,7 @@ func TestArticlePublishingHttp(t *testing.T) {
|
||||
t.Fatalf("expected status 200, got %d", listRec.Code)
|
||||
}
|
||||
var articles []domainArticle.Article
|
||||
if err := json.Unmarshal(listRec.Body.Bytes(), &articles); err != nil {
|
||||
if err := json.Unmarshal(articleItemsJSON(listRec.Body.Bytes()), &articles); err != nil {
|
||||
t.Fatalf("failed to decode response: %v", err)
|
||||
}
|
||||
foundStillOnline := false
|
||||
|
||||
Reference in new issue
Block a user