mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
Migrate from Event type to CalendarObject
This is preparation to support other calendar components like VTODO and VJOURNAL
This commit is contained in:
@@ -37,7 +37,7 @@ async fn test_create_event<CS: CalendarStore>(mut store: CS) {
|
||||
.unwrap();
|
||||
|
||||
store
|
||||
.put_event(
|
||||
.put_object(
|
||||
"testuser".to_owned(),
|
||||
"test".to_owned(),
|
||||
"asd".to_owned(),
|
||||
@@ -46,7 +46,7 @@ async fn test_create_event<CS: CalendarStore>(mut store: CS) {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let event = store.get_event("testuser", "test", "asd").await.unwrap();
|
||||
let event = store.get_object("testuser", "test", "asd").await.unwrap();
|
||||
assert_eq!(event.get_ics(), EVENT);
|
||||
assert_eq!(event.get_uid(), "asd");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user