fixed unit testing: search by ISBN
This commit is contained in:
@@ -67,21 +67,21 @@ func TestSearchBook_OneBookRead(t *testing.T) {
|
|||||||
result.Books)
|
result.Books)
|
||||||
}
|
}
|
||||||
|
|
||||||
//func TestSearchBook_ISBN(t *testing.T) {
|
func TestSearchBook_ISBN(t *testing.T) {
|
||||||
// result := testSearchBook(t, "9782070337903", "", "")
|
result := testSearchBook(t, "9782070337903", "", "")
|
||||||
// assert.Equal(t, int64(1), result.Count)
|
assert.Equal(t, int64(1), result.Count)
|
||||||
// assert.Equal(t,
|
assert.Equal(t,
|
||||||
// []bookSearchGetBook{{
|
[]bookSearchGetBook{{
|
||||||
// Title: "Le complot contre l'Amérique",
|
Title: "Le complot contre l'Amérique",
|
||||||
// Author: "Philip Roth",
|
Author: "Philip Roth",
|
||||||
// Id: 22,
|
Id: 22,
|
||||||
// Rating: 6,
|
Rating: 6,
|
||||||
// Read: true,
|
Read: true,
|
||||||
// WantRead: false,
|
WantRead: false,
|
||||||
// CoverPath: "/bookcover/lecomplotcontrelamerique.jpg",
|
CoverPath: "/bookcover/lecomplotcontrelamerique.jpg",
|
||||||
// }},
|
}},
|
||||||
// result)
|
result.Books)
|
||||||
//}
|
}
|
||||||
|
|
||||||
func TestSearchBook_Limit(t *testing.T) {
|
func TestSearchBook_Limit(t *testing.T) {
|
||||||
result := testSearchBook(t, "a", "10", "")
|
result := testSearchBook(t, "a", "10", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user