revision_test.rs 333 B

12345678910111213
  1. use flowy_test::editor::{EditorScript::*, *};
  2. #[tokio::test]
  3. async fn create_doc() {
  4. let scripts = vec![
  5. InsertText("123", 0),
  6. AssertRevId(1),
  7. InsertText("456", 3),
  8. AssertRevId(2),
  9. AssertJson(r#"[{"insert":"123456\n"}]"#),
  10. ];
  11. EditorTest::new().await.run_scripts(scripts).await;
  12. }