Unify organizer navigation and add personal widget dashboard
Build and publish container images / images (push) Successful in 12m38s
Release container images / release (push) Successful in 23s

This commit is contained in:
Anya Tokugawa committed 2026-11-04 00:05:16 +09:00
1 parent a9249009f0
commit 6ba30bc9f4
44 files changed
+843 -54

No files matched your search

+11
View File
@@ -61,6 +61,17 @@ func TestCalendarUpcomingDefaultsAndBounds(t *testing.T) {
if !strings.Contains(w.Header().Get("Cache-Control"), "no-store") {
t.Fatal("private response cached")
}
w = calendarRequest(s, token, "GET", calendarAPI+"upcoming?period=day", "", "")
if w.Code != 200 || json.Unmarshal(w.Body.Bytes(), &result) != nil {
t.Fatal(w.Code, w.Body)
}
now := time.Now().In(s.getLocation(domain))
end := time.Date(now.Year(), now.Month(), now.Day()+1, 0, 0, 0, 0, s.getLocation(domain))
for _, event := range result.Events {
if !event.Start.Before(end) {
t.Fatal("tomorrow event in today's widget", event.Start)
}
}
if w = calendarRequest(s, "", "GET", calendarAPI+"upcoming", "", ""); w.Code != 403 {
t.Fatal("anonymous access", w.Code)
}