summaryrefslogtreecommitdiff
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.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/internal/web/server_test.go b/internal/web/server_test.go
index 30c8fbf..47c38e9 100644
--- a/internal/web/server_test.go
+++ b/internal/web/server_test.go
@@ -64,17 +64,6 @@ func TestServer(t *testing.T) {
}
})
- t.Run("lookup", func(t *testing.T) {
- rec := httptest.NewRecorder()
- srv.ServeHTTP(rec, httptest.NewRequest("GET", "/lookup?ref=J+20:1&v=wuj", nil))
- if rec.Code != http.StatusOK {
- t.Fatalf("status = %d, want 200", rec.Code)
- }
- if !strings.Contains(rec.Body.String(), "20:1") {
- t.Errorf("lookup result missing verse: %q", rec.Body.String())
- }
- })
-
t.Run("theme.css", func(t *testing.T) {
rec := httptest.NewRecorder()
srv.ServeHTTP(rec, httptest.NewRequest("GET", "/theme.css?name=benedictines", nil))
@@ -172,22 +161,6 @@ func TestServer(t *testing.T) {
}
})
- t.Run("index page seeds lookup results from ?ref=", func(t *testing.T) {
- rec := httptest.NewRecorder()
- srv.ServeHTTP(rec, httptest.NewRequest("GET", "/?ref=J+20:1&v=wuj", nil))
- if rec.Code != http.StatusOK {
- t.Fatalf("status = %d, want 200", rec.Code)
- }
- body := rec.Body.String()
- if !strings.Contains(body, `id="lookup-results"`) {
- t.Fatalf("body missing lookup-results container: %q", body)
- }
- i := strings.Index(body, `id="lookup-results"`)
- if !strings.Contains(body[i:], "20:1") {
- t.Errorf("lookup-results not populated from ?ref=: %q", body[i:min(i+400, len(body))])
- }
- })
-
t.Run("index page seeds display select from cfg", func(t *testing.T) {
rec := httptest.NewRecorder()
srv.ServeHTTP(rec, httptest.NewRequest("GET", "/?date=2026-07-22&v=wuj", nil))