about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-28 14:18:40 +0300
committerVika <vika@fireburn.ru>2024-08-28 14:18:40 +0300
commit60becdedcdf78a7c643ad100bf95799b2d5b9625 (patch)
treee55306efb76e4035b88131be9bc10101ce65b56b
parent67e4e83d1cbf984f4a801e7245a2aeec66efe522 (diff)
kittybox-frontend-renderer: fix tests
-rw-r--r--templates/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/src/lib.rs b/templates/src/lib.rs
index 81b1a60..96bf592 100644
--- a/templates/src/lib.rs
+++ b/templates/src/lib.rs
@@ -244,7 +244,7 @@ mod tests {
     fn test_note() {
         let mf2 = gen_random_post(&rand::random::<Domain>().to_string(), PostType::Note);
 
-        let html = crate::mf2::Entry { post: &mf2 }.to_string();
+        let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
 
         let url: Url = mf2
             .pointer("/properties/uid/0")
@@ -275,7 +275,7 @@ mod tests {
     #[test]
     fn test_article() {
         let mf2 = gen_random_post(&rand::random::<Domain>().to_string(), PostType::Article);
-        let html = crate::mf2::Entry { post: &mf2 }.to_string();
+        let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
         let url: Url = mf2
             .pointer("/properties/uid/0")
             .and_then(|i| i.as_str())
@@ -332,7 +332,7 @@ mod tests {
                 .and_then(|i| i.as_str())
                 .and_then(|u| u.parse().ok())
                 .unwrap();
-            let html = crate::mf2::Entry { post: &mf2 }.to_string();
+            let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
             let parsed: Document = microformats::from_html(&html, url.clone()).unwrap();
 
             if let Some(item) = parsed.items.first() {