mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
mock websocket
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
use flowy_document_infra::core::{Document, FlowyDoc};
|
||||
use flowy_test::editor::{EditorScript::*, *};
|
||||
use lib_ot::{revision::RevState, rich_text::RichTextDeltaBuilder};
|
||||
|
||||
@ -51,16 +50,3 @@ async fn doc_push_test() {
|
||||
];
|
||||
EditorTest::new().await.run_scripts(scripts).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn doc_push_test2() {
|
||||
let mut document = Document::new::<FlowyDoc>();
|
||||
let delta_1 = document.insert(0, "123").unwrap();
|
||||
let json = document.to_json();
|
||||
|
||||
let scripts = vec![
|
||||
SimulatePushRevisionMessageWithDelta(delta_1),
|
||||
AssertJson(r#"[{"insert":"\n123"}]"#),
|
||||
];
|
||||
EditorTest::new().await.run_scripts(scripts).await;
|
||||
}
|
||||
|
Reference in New Issue
Block a user