mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
add feature flowy_unit_test
This commit is contained in:
@ -2,6 +2,7 @@ use crate::{helper::ViewTest, FlowySDKTest};
|
||||
use flowy_document::services::doc::edit::ClientDocEditor;
|
||||
use flowy_document_infra::entities::doc::DocIdentifier;
|
||||
use std::sync::Arc;
|
||||
use tokio::time::Interval;
|
||||
|
||||
pub struct EditorTest {
|
||||
pub sdk: FlowySDKTest,
|
||||
@ -20,3 +21,12 @@ impl EditorTest {
|
||||
self.sdk.flowy_document.open(doc_identifier).await.unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
pub enum EditAction {
|
||||
InsertText(&'static str, usize),
|
||||
Delete(Interval),
|
||||
Replace(Interval, &'static str),
|
||||
Undo(),
|
||||
Redo(),
|
||||
AssertJson(&'static str),
|
||||
}
|
||||
|
Reference in New Issue
Block a user