Unify organizer navigation and add personal widget dashboard
This commit is contained in:
1 parent
a9249009f0
commit
6ba30bc9f4
44 files changed
+843
-54
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user