fixed tests than were not run by mistake

This commit is contained in:
2026-02-24 00:03:16 +01:00
parent 00a5a6c045
commit c50c6901b9

View File

@@ -35,13 +35,13 @@ func TestSearchBookPerAuthor_Ok(t *testing.T) {
func TestSearchBookPerAuthor_Limit(t *testing.T) {
result := testFetchBookAuthor(t, 1, "2", "")
assert.Equal(t, 2, len(result.Books))
assert.Equal(t, int64(2), result.Count)
assert.Equal(t, int64(3), result.Count)
}
func TestSearchBookPerAuthor_Offset(t *testing.T) {
result := testFetchBookAuthor(t, 1, "10", "2")
assert.Equal(t, 1, len(result.Books))
assert.Equal(t, int64(1), result.Count)
assert.Equal(t, int64(3), result.Count)
}
func testFetchBookAuthor(t *testing.T, authorId uint, limit string, offset string) bookAuthorGetResult {