use faker_rand::lorem::Paragraphs; use crate::{ app::App, clock::RequestedAt, events::types, repo::{channel::Channel, 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() }