]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/protocol/objects/mod.rs
Add federation tests for Friendica, improve parsing of source field (fixes #2057...
[lemmy.git] / crates / apub / src / protocol / objects / mod.rs
index 139fe0fcee8368d29fbbab89df23a4bb55b273de..2367b686339e1dfb382d04715a6e83df6cd4722b 100644 (file)
@@ -70,4 +70,10 @@ mod tests {
     file_to_json_object::<WithContext<Page>>("assets/lotide/objects/page.json").unwrap();
     file_to_json_object::<WithContext<Tombstone>>("assets/lotide/objects/tombstone.json").unwrap();
   }
+
+  #[actix_rt::test]
+  async fn test_parse_object_friendica() {
+    file_to_json_object::<WithContext<Person>>("assets/friendica/objects/person.json").unwrap();
+    file_to_json_object::<WithContext<Note>>("assets/friendica/objects/note.json").unwrap();
+  }
 }