Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: format json output
appflowyba3e8cc14b72
diff --git a/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs b/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rsindex c72fc61dad..0855fb3d29 100644--- a/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs+++ b/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs@@ -33,7 +33,7 @@ impl<'de> serde::Deserialize<'de> for TrashTypeRevision {type Value = TrashTypeRevision;fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {- formatter.write_str("u8")+ formatter.write_str("expected enum TrashTypeRevision with type: u8")}fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>diff --git a/shared-lib/flowy-sync/src/client_folder/folder_pad.rs b/shared-lib/flowy-sync/src/client_folder/folder_pad.rsindex 278c0970ff..28c8e087a1 100644--- a/shared-lib/flowy-sync/src/client_folder/folder_pad.rs+++ b/shared-lib/flowy-sync/src/client_folder/folder_pad.rs@@ -457,6 +457,7 @@ mod tests {AppRevision, FolderRevision, TrashRevision, ViewRevision, WorkspaceRevision,};use lib_ot::core::{OperationTransform, TextDelta, TextDeltaBuilder};+ use serde_json::json;#[test]fn folder_add_workspace() {@@ -847,6 +848,10 @@ mod tests {let json1 = old.to_json().unwrap();let json2 = new.to_json().unwrap();+ // format the json str+ let folder_rev: FolderRevision = serde_json::from_str(expected).unwrap();+ let expected = serde_json::to_string(&folder_rev).unwrap();+assert_eq!(json1, expected);assert_eq!(json1, json2);}