pub mod undo_vote; pub mod vote; #[cfg(test)] mod tests { use crate::protocol::{ activities::voting::{undo_vote::UndoVote, vote::Vote}, tests::test_parse_lemmy_item, }; use serial_test::serial; #[actix_rt::test] #[serial] async fn test_parse_lemmy_voting() { test_parse_lemmy_item::("assets/lemmy/activities/voting/like_note.json"); test_parse_lemmy_item::("assets/lemmy/activities/voting/dislike_page.json"); test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_like_note.json"); test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_dislike_page.json"); } }