feat(web): show ICS subscription events in detail view
This commit is contained in:
@@ -46,7 +46,7 @@ func newTestBackend(t *testing.T) (*Backend, *db.DB) {
|
||||
t.Fatalf("CreateCalendar bob/personal: %v", err)
|
||||
}
|
||||
logger := slog.New(slog.NewTextHandler(io.Discard, nil))
|
||||
return NewBackend(cfg, st, dbase, logger), dbase
|
||||
return NewBackend(cfg, st, dbase, logger, nil), dbase
|
||||
}
|
||||
|
||||
func ctxFor(username string) context.Context {
|
||||
@@ -179,7 +179,7 @@ func TestPropFindEmitsCalendarColor(t *testing.T) {
|
||||
}
|
||||
|
||||
logger := slog.New(slog.NewTextHandler(io.Discard, nil))
|
||||
handler := NewHandler(&config.Config{}, st, dbase, logger)
|
||||
handler := NewHandler(&config.Config{}, st, dbase, logger, nil)
|
||||
|
||||
req := httptest.NewRequest("PROPFIND", "/cal/home/", strings.NewReader(
|
||||
`<?xml version="1.0"?><a:propfind xmlns:a="DAV:"><a:allprop/></a:propfind>`))
|
||||
@@ -250,7 +250,7 @@ func TestPropFindExplicitCalendarColorRequest(t *testing.T) {
|
||||
}
|
||||
|
||||
logger := slog.New(slog.NewTextHandler(io.Discard, nil))
|
||||
handler := NewHandler(&config.Config{}, st, dbase, logger)
|
||||
handler := NewHandler(&config.Config{}, st, dbase, logger, nil)
|
||||
|
||||
req := httptest.NewRequest("PROPFIND", "/cal/home/work/", strings.NewReader(
|
||||
`<?xml version="1.0"?><D:propfind xmlns:D="DAV:" xmlns:A="http://apple.com/ns/ical/">`+
|
||||
|
||||
Reference in New Issue
Block a user