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.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/web/server_test.go b/internal/web/server_test.go
index 32ee412..00da039 100644
--- a/internal/web/server_test.go
+++ b/internal/web/server_test.go
@@ -139,18 +139,18 @@ func TestServer(t *testing.T) {
}
})
- t.Run("readings partial interlinear substitutes pl", func(t *testing.T) {
+ t.Run("readings partial interlinear substitutes bt", func(t *testing.T) {
rec := httptest.NewRecorder()
- srv.ServeHTTP(rec, httptest.NewRequest("GET", "/readings?date=2026-07-22&v=pl&display=interlinear", nil))
+ srv.ServeHTTP(rec, httptest.NewRequest("GET", "/readings?date=2026-07-22&v=bt&display=interlinear", nil))
if rec.Code != http.StatusOK {
t.Fatalf("status = %d, want 200", rec.Code)
}
body := rec.Body.String()
if !strings.Contains(body, "Wujek") {
- t.Errorf("pl should be substituted with wuj in interlinear mode: %q", body)
+ t.Errorf("bt should be substituted with wuj in interlinear mode: %q", body)
}
- if strings.Contains(body, "Polski (niedziela.pl)") {
- t.Errorf("pl paragraph column should not appear in interlinear mode: %q", body)
+ if strings.Contains(body, "Biblia TysiÄ…clecia (niedziela.pl)") {
+ t.Errorf("bt paragraph column should not appear in interlinear mode: %q", body)
}
})