workspace_test.rs 885 B

12345678910111213141516171819202122232425262728293031323334
  1. use crate::client_folder::script::FolderNodePadScript::*;
  2. use crate::client_folder::script::FolderNodePadTest;
  3. use flowy_sync::client_folder::FolderNodePad;
  4. #[test]
  5. fn client_folder_create_app_test() {
  6. let mut test = FolderNodePadTest::new();
  7. test.run_scripts(vec![
  8. CreateApp {
  9. id: "1".to_string(),
  10. name: "my first app".to_string(),
  11. },
  12. AssertAppContent {
  13. id: "1".to_string(),
  14. name: "my first app".to_string(),
  15. },
  16. ]);
  17. }
  18. #[test]
  19. fn client_folder_delete_app_test() {
  20. let mut test = FolderNodePadTest::new();
  21. test.run_scripts(vec![
  22. CreateApp {
  23. id: "1".to_string(),
  24. name: "my first app".to_string(),
  25. },
  26. DeleteApp { id: "1".to_string() },
  27. AssertApp {
  28. id: "1".to_string(),
  29. expected: None,
  30. },
  31. ]);
  32. }