mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-19 07:03:37 +00:00
35 lines
885 B
Rust
35 lines
885 B
Rust
use crate::client_folder::script::FolderNodePadScript::*;
|
|
use crate::client_folder::script::FolderNodePadTest;
|
|
use flowy_sync::client_folder::FolderNodePad;
|
|
|
|
#[test]
|
|
fn client_folder_create_app_test() {
|
|
let mut test = FolderNodePadTest::new();
|
|
test.run_scripts(vec![
|
|
CreateApp {
|
|
id: "1".to_string(),
|
|
name: "my first app".to_string(),
|
|
},
|
|
AssertAppContent {
|
|
id: "1".to_string(),
|
|
name: "my first app".to_string(),
|
|
},
|
|
]);
|
|
}
|
|
|
|
#[test]
|
|
fn client_folder_delete_app_test() {
|
|
let mut test = FolderNodePadTest::new();
|
|
test.run_scripts(vec![
|
|
CreateApp {
|
|
id: "1".to_string(),
|
|
name: "my first app".to_string(),
|
|
},
|
|
DeleteApp { id: "1".to_string() },
|
|
AssertApp {
|
|
id: "1".to_string(),
|
|
expected: None,
|
|
},
|
|
]);
|
|
}
|