2022-02-07 19:23:12 +00:00
|
|
|
pub mod block_user;
|
|
|
|
pub mod undo_block_user;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use crate::protocol::{
|
|
|
|
activities::block::{block_user::BlockUser, undo_block_user::UndoBlockUser},
|
|
|
|
tests::test_parse_lemmy_item,
|
|
|
|
};
|
2023-11-17 03:51:33 +00:00
|
|
|
use lemmy_utils::error::LemmyResult;
|
2022-02-07 19:23:12 +00:00
|
|
|
|
2022-02-17 22:04:01 +00:00
|
|
|
#[test]
|
2023-11-17 03:51:33 +00:00
|
|
|
fn test_parse_lemmy_block() -> LemmyResult<()> {
|
|
|
|
test_parse_lemmy_item::<BlockUser>("assets/lemmy/activities/block/block_user.json")?;
|
|
|
|
test_parse_lemmy_item::<UndoBlockUser>("assets/lemmy/activities/block/undo_block_user.json")?;
|
|
|
|
Ok(())
|
2022-02-07 19:23:12 +00:00
|
|
|
}
|
|
|
|
}
|