fixed tests than were not run by mistake
This commit is contained in:
@@ -35,13 +35,13 @@ func TestSearchBookPerAuthor_Ok(t *testing.T) {
|
|||||||
func TestSearchBookPerAuthor_Limit(t *testing.T) {
|
func TestSearchBookPerAuthor_Limit(t *testing.T) {
|
||||||
result := testFetchBookAuthor(t, 1, "2", "")
|
result := testFetchBookAuthor(t, 1, "2", "")
|
||||||
assert.Equal(t, 2, len(result.Books))
|
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) {
|
func TestSearchBookPerAuthor_Offset(t *testing.T) {
|
||||||
result := testFetchBookAuthor(t, 1, "10", "2")
|
result := testFetchBookAuthor(t, 1, "10", "2")
|
||||||
assert.Equal(t, 1, len(result.Books))
|
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 {
|
func testFetchBookAuthor(t *testing.T, authorId uint, limit string, offset string) bookAuthorGetResult {
|
||||||
Reference in New Issue
Block a user