mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 22:01:19 +00:00
Fix activity list test (#2562)
This commit is contained in:
parent
0b86ffbdbd
commit
b16df59373
1 changed files with 8 additions and 3 deletions
|
@ -133,7 +133,12 @@ impl GetCommunity for AnnouncableActivities {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::{
|
use crate::{
|
||||||
activity_lists::{GroupInboxActivities, PersonInboxActivities, SiteInboxActivities},
|
activity_lists::{
|
||||||
|
GroupInboxActivities,
|
||||||
|
PersonInboxActivities,
|
||||||
|
PersonInboxActivitiesWithAnnouncable,
|
||||||
|
SiteInboxActivities,
|
||||||
|
},
|
||||||
protocol::tests::test_parse_lemmy_item,
|
protocol::tests::test_parse_lemmy_item,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -151,11 +156,11 @@ mod tests {
|
||||||
fn test_person_inbox() {
|
fn test_person_inbox() {
|
||||||
test_parse_lemmy_item::<PersonInboxActivities>("assets/lemmy/activities/following/accept.json")
|
test_parse_lemmy_item::<PersonInboxActivities>("assets/lemmy/activities/following/accept.json")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
test_parse_lemmy_item::<PersonInboxActivities>(
|
test_parse_lemmy_item::<PersonInboxActivitiesWithAnnouncable>(
|
||||||
"assets/lemmy/activities/create_or_update/create_note.json",
|
"assets/lemmy/activities/create_or_update/create_note.json",
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
test_parse_lemmy_item::<PersonInboxActivities>(
|
test_parse_lemmy_item::<PersonInboxActivitiesWithAnnouncable>(
|
||||||
"assets/lemmy/activities/create_or_update/create_private_message.json",
|
"assets/lemmy/activities/create_or_update/create_private_message.json",
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue