Make "start read" icon full when the book is being read in list view

This commit is contained in:
2026-03-26 15:11:56 +01:00
parent 1da482c2ad
commit 4d687e3dcb
4 changed files with 22 additions and 2 deletions

View File

@@ -53,6 +53,23 @@ func TestSearchBook_OneBookRead(t *testing.T) {
result.Books)
}
func TestSearchBook_OneBookStartRead(t *testing.T) {
result := testSearchBook(t, "Recherches", "", "")
assert.Equal(t, int64(1), result.Count)
assert.Equal(t,
[]dto.BookSearchGetBook{{
Title: "Recherches philosophiques",
Author: "Ludwig Wittgenstein",
ID: 30,
Rating: 0,
Read: false,
StartRead: true,
WantRead: false,
CoverPath: "/static/bookcover/Recherches-philosophiques.jpg",
}},
result.Books)
}
func TestSearchBook_ISBN(t *testing.T) {
result := testSearchBook(t, "9782070337903", "", "")
assert.Equal(t, int64(1), result.Count)