aboutsummaryrefslogtreecommitdiff
path: root/internal/web/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/server_test.go')
-rw-r--r--internal/web/server_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/web/server_test.go b/internal/web/server_test.go
index f6c050b..0754b08 100644
--- a/internal/web/server_test.go
+++ b/internal/web/server_test.go
@@ -606,6 +606,7 @@ func TestBookmarksFlow(t *testing.T) {
form := url.Values{}
form.Set("book", "John")
form.Set("chap", "3")
+ form.Set("verse", "16")
form.Set("note", "for God so loved")
form.Set("tags", "grace, gospel")
post := httptest.NewRequest("POST", "/reader/bookmark", strings.NewReader(form.Encode()))
@@ -620,8 +621,9 @@ func TestBookmarksFlow(t *testing.T) {
list := httptest.NewRecorder()
srv.ServeHTTP(list, httptest.NewRequest("GET", "/bookmarks", nil))
b := list.Body.String()
- if !strings.Contains(b, "John") || !strings.Contains(b, "for God so loved") || !strings.Contains(b, `book=John&chap=3`) {
- t.Errorf("bookmark not listed:\n%s", b)
+ if !strings.Contains(b, "John") || !strings.Contains(b, "for God so loved") ||
+ !strings.Contains(b, `book=John&chap=3`) || !strings.Contains(b, "John 3:16") {
+ t.Errorf("bookmark not listed with verse:\n%s", b)
}
// Tag filter.