feat: articles pagination
This commit is contained in:
1 parent
a2d224240c
commit
73f4b539fe
45 files changed
+3528
-317
No files matched your search
@@ -57,7 +57,7 @@ func TestArticlesListHttp(t *testing.T) {
|
||||
}
|
||||
|
||||
var got []map[string]any
|
||||
if err := json.Unmarshal(rec.Body.Bytes(), &got); err != nil {
|
||||
if err := json.Unmarshal(articleItemsJSON(rec.Body.Bytes()), &got); err != nil {
|
||||
t.Fatalf("failed to decode response: %v", err)
|
||||
}
|
||||
if len(got) != 1 {
|
||||
|
||||
Reference in new issue
Block a user