From 60becdedcdf78a7c643ad100bf95799b2d5b9625 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 28 Aug 2024 14:18:40 +0300 Subject: kittybox-frontend-renderer: fix tests --- templates/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') 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::().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::().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() { -- cgit 1.4.1