2022-02-07 19:23:12 +00:00
|
|
|
pub mod block_user;
|
|
|
|
pub mod undo_block_user;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
2023-07-17 15:04:14 +00:00
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
#![allow(clippy::indexing_slicing)]
|
|
|
|
|
2022-02-07 19:23:12 +00:00
|
|
|
use crate::protocol::{
|
|
|
|
activities::block::{block_user::BlockUser, undo_block_user::UndoBlockUser},
|
|
|
|
tests::test_parse_lemmy_item,
|
|
|
|
};
|
|
|
|
|
2022-02-17 22:04:01 +00:00
|
|
|
#[test]
|
|
|
|
fn test_parse_lemmy_block() {
|
2022-02-07 19:23:12 +00:00
|
|
|
test_parse_lemmy_item::<BlockUser>("assets/lemmy/activities/block/block_user.json").unwrap();
|
|
|
|
test_parse_lemmy_item::<UndoBlockUser>("assets/lemmy/activities/block/undo_block_user.json")
|
|
|
|
.unwrap();
|
|
|
|
}
|
|
|
|
}
|