mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-10-01 19:38:19 +00:00
19 lines
455 B
Rust
19 lines
455 B
Rust
use crate::helper::*;
|
|
|
|
#[test]
|
|
fn file_create_test() {
|
|
let doc_desc = create_doc("hello world", "flutter ❤️ rust");
|
|
dbg!(&doc_desc);
|
|
}
|
|
|
|
#[test]
|
|
fn file_save_test() {
|
|
let content = "😁😁😁😁😁😁😁😁😁😁".to_owned();
|
|
let doc_desc = create_doc("hello world", "flutter ❤️ rust");
|
|
dbg!(&doc_desc);
|
|
save_doc(&doc_desc, &content);
|
|
|
|
let doc = read_doc(&doc_desc.id);
|
|
assert_eq!(doc.content, content);
|
|
}
|