mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-09 18:16:17 +00:00
23 lines
773 B
Rust
23 lines
773 B
Rust
![]() |
use flowy_database2::services::setting::CalendarLayoutSetting;
|
||
|
|
||
|
use crate::database::layout_test::script::DatabaseLayoutTest;
|
||
|
use crate::database::layout_test::script::LayoutScript::*;
|
||
|
|
||
|
#[tokio::test]
|
||
|
async fn calendar_initial_layout_setting_test() {
|
||
|
let mut test = DatabaseLayoutTest::new_calendar().await;
|
||
|
let date_field = test.get_first_date_field().await;
|
||
|
let default_calendar_setting = CalendarLayoutSetting::new(date_field.id.clone());
|
||
|
let scripts = vec![AssertCalendarLayoutSetting {
|
||
|
expected: default_calendar_setting,
|
||
|
}];
|
||
|
test.run_scripts(scripts).await;
|
||
|
}
|
||
|
|
||
|
#[tokio::test]
|
||
|
async fn calendar_get_events_test() {
|
||
|
let mut test = DatabaseLayoutTest::new_calendar().await;
|
||
|
let scripts = vec![GetCalendarEvents];
|
||
|
test.run_scripts(scripts).await;
|
||
|
}
|