Collection form: add a button to remove added books

This commit is contained in:
2026-04-24 19:48:38 +02:00
parent 1ae76ed525
commit 08a273b500
9 changed files with 174 additions and 12 deletions

View File

@@ -12,8 +12,8 @@ import (
func TestFetchAllCollections_OK(t *testing.T) {
status, res := testFetchCollections(t, "10", "0")
assert.Equal(t, http.StatusOK, status)
assert.Equal(t, int64(4), res.Count)
assert.Equal(t, 4, len(res.Collections))
assert.Equal(t, int64(5), res.Count)
assert.Equal(t, 5, len(res.Collections))
}
func testFetchCollections(t *testing.T, limit string, offset string) (int, dto.CollectionItemsGet) {