14 lines
333 B
Rust
Raw Normal View History

2021-12-09 11:00:05 +08:00
use flowy_test::editor::{EditorScript::*, *};
2021-12-08 17:33:22 +08:00
#[tokio::test]
async fn create_doc() {
2021-12-09 11:00:05 +08:00
let scripts = vec![
InsertText("123", 0),
AssertRevId(1),
InsertText("456", 3),
AssertRevId(2),
AssertJson(r#"[{"insert":"123456\n"}]"#),
];
EditorTest::new().await.run_scripts(scripts).await;
2021-12-08 17:33:22 +08:00
}