mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 07:31:03 +00:00
20 lines
609 B
Rust
20 lines
609 B
Rust
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,
|
|
};
|
|
|
|
#[actix_rt::test]
|
|
async fn test_parse_lemmy_voting() {
|
|
test_parse_lemmy_item::<Vote>("assets/lemmy/activities/voting/like_note.json");
|
|
test_parse_lemmy_item::<Vote>("assets/lemmy/activities/voting/dislike_page.json");
|
|
|
|
test_parse_lemmy_item::<UndoVote>("assets/lemmy/activities/voting/undo_like_note.json");
|
|
test_parse_lemmy_item::<UndoVote>("assets/lemmy/activities/voting/undo_dislike_page.json");
|
|
}
|
|
}
|