use faker_rand::lorem::Paragraphs; use crate::{app::App, channel::Channel, clock::RequestedAt, event::types, login::Login}; pub async fn send( app: &App, login: &Login, channel: &Channel, sent_at: &RequestedAt, ) -> types::ChannelEvent { let body = propose(); app.events() .send(login, &channel.id, &body, sent_at) .await .expect("should succeed if the channel exists") } pub fn propose() -> String { rand::random::().to_string() }