AppFlowy/shared-lib/flowy-grid-data-model/tests/serde_test.rs

11 lines
282 B
Rust
Raw Normal View History

use flowy_grid_data_model::revision::*;
2022-03-04 10:11:12 +00:00
#[test]
fn grid_default_serde_test() {
let grid_id = "1".to_owned();
2022-06-15 09:24:46 +00:00
let grid = GridRevision::new(&grid_id);
2022-03-04 10:11:12 +00:00
let json = serde_json::to_string(&grid).unwrap();
assert_eq!(json, r#"{"grid_id":"1","fields":[],"blocks":[]}"#)
2022-03-04 10:11:12 +00:00
}