mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-09 18:16:17 +00:00

* feat: add flowy-database2 * chore: config type option data * chore: impl type option * feat: config group * fix: group compile * feat: add sort * chore: setting * chore: insert with specific type * chore: custom group * chore: rename any map * chore: use group setting * chore: update * chore: open database event * chore: update database editor * chore: update * chore: update view editor * chore: update * chore: update view editor * chore: sort feat * chore: update handler * chore: update * chore: config handler event * feat: impl handlers * feat: impl handlers * chore: layout setting * feat: impl handlers * chore: remove flowy-folder ref * chore: integrate flowy-database2 * feat: get cell * chore: create database with data * chore: create view * chore: fix dart compile * fix: some bugs * chore: update * chore: merge develop * chore: fix warning * chore: integrate rocksdb * fix: rocksdb compile errros * fix: update cell * chore: update the bundle identifier * fix: create row * fix: switch to field * fix: duplicate grid * test: migrate tests * test: migrate tests * test: update test * test: migrate tests * chore: add patch
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;
|
|
}
|